diff --git a/res/app/control-panes/dashboard/shell/shell-controller.js b/res/app/control-panes/dashboard/shell/shell-controller.js index f29406de..05a1d9fb 100644 --- a/res/app/control-panes/dashboard/shell/shell-controller.js +++ b/res/app/control-panes/dashboard/shell/shell-controller.js @@ -1,8 +1,8 @@ -module.exports = function ShellCtrl($scope, $rootScope) { +module.exports = function ShellCtrl($scope) { $scope.results = [] $scope.run = function(command) { - var cmd = $rootScope.control.shell(command) + var cmd = $scope.control.shell(command) return cmd.promise .progressed(function(results) { $scope.results = results diff --git a/res/app/device-control/device-control-controller.js b/res/app/device-control/device-control-controller.js index f56da434..6bcabfb7 100644 --- a/res/app/device-control/device-control-controller.js +++ b/res/app/device-control/device-control-controller.js @@ -6,7 +6,6 @@ module.exports = function DeviceControlCtrl( , GroupService , ControlService ) { - $scope.control = null $scope.device = null $scope.control = null $scope.installation = null