mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Make inviting/kicking work.
This commit is contained in:
parent
4ac766c371
commit
3a0d177925
6 changed files with 55 additions and 21 deletions
|
@ -1,11 +1,30 @@
|
|||
define(['./module', 'oboe'], function(mod, oboe) {
|
||||
function DeviceListCtrl($scope, deviceService) {
|
||||
define(['./module'], function(mod) {
|
||||
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'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
mod.controller('DeviceListCtrl'
|
||||
, [ '$scope'
|
||||
, 'deviceService'
|
||||
, 'groupService'
|
||||
, DeviceListCtrl
|
||||
])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue