1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00
OpenSTF/res/app/components/device-list/DeviceListCtrl.js
2014-02-14 20:17:23 +09:00

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'
}
})
}
}