mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Keep device data up to date on device page.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = function DeviceControlCtrl($scope, $routeParams, $location, DeviceService, GroupService, ControlService) {
|
||||
$scope.control = null
|
||||
$scope.device = {
|
||||
promise: DeviceService.get($routeParams.serial)
|
||||
promise: DeviceService.get($routeParams.serial, $scope)
|
||||
.then(function(device) {
|
||||
return GroupService.invite(device)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user