mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 15:55:31 +02:00
21 lines
410 B
JavaScript
21 lines
410 B
JavaScript
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'
|
|
}
|
|
})
|
|
}
|
|
}
|