mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Keep device data up to date on device page.
This commit is contained in:
parent
ee8951e467
commit
238d5d6f4e
3 changed files with 18 additions and 6 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue