Removing $rootScope for device and control, not needed anymore.

This commit is contained in:
Gunther Brunner
2014-04-08 20:50:35 +09:00
parent b4e30aae75
commit e10a58c881
11 changed files with 41 additions and 89 deletions

View File

@@ -1,4 +1,4 @@
module.exports = function ShellCtrl($scope, $rootScope, gettext) {
module.exports = function ShellCtrl($scope, gettext) {
// TODO: implement multiple devices
// $scope.results = []
$scope.result = null
@@ -11,7 +11,7 @@ module.exports = function ShellCtrl($scope, $rootScope, gettext) {
return
}
var cmd = $rootScope.control.shell(command)
var cmd = $scope.control.shell(command)
$scope.command = ''
return cmd.promise