1
0
Fork 0
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:
Simo Kinnunen 2014-02-03 01:31:18 +09:00
parent 4ac766c371
commit 3a0d177925
6 changed files with 55 additions and 21 deletions

View file

@ -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
])
})