mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 07:45:16 +02:00
In the middle of a big refactoring.
This commit is contained in:
20
res/app/components/device-list/DeviceListCtrl.js
Normal file
20
res/app/components/device-list/DeviceListCtrl.js
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
|
||||
|
||||
$scope.devices = deviceService.devices
|
||||
|
||||
$scope.invite = function (device) {
|
||||
groupService.invite({
|
||||
serial: {
|
||||
value: device.serial, match: 'exact'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$scope.kick = function (device) {
|
||||
groupService.kick({
|
||||
serial: {
|
||||
value: device.serial, match: 'exact'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user