mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
20 lines
410 B
JavaScript
20 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'
|
|
}
|
|
})
|
|
}
|
|
}
|