mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 21:05:18 +02:00
Make inviting/kicking work.
This commit is contained in:
@@ -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
|
||||
])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user