mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 15:55:31 +02:00
First package works.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
|
||||
module.exports = function DeviceListCtrl($scope) {
|
||||
|
||||
$scope.devices = deviceService.devices
|
||||
$scope.devices = [
|
||||
{serial: '1231231', present: true, owner: {email: 'fefe@f.com'}},
|
||||
{serial: '123122', present: true, owner: {email: 'fefe2@f.com'}}
|
||||
];
|
||||
|
||||
$scope.invite = function (device) {
|
||||
$scope.invite = function (device) {
|
||||
groupService.invite({
|
||||
serial: {
|
||||
value: device.serial, match: 'exact'
|
||||
@@ -17,4 +20,27 @@ module.exports = function DeviceListCtrl($scope, deviceService, groupService) {
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
//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'
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user