- Bringing back browser, navigation, input, dashboard and shell templates.

This commit is contained in:
Gunther Brunner
2014-03-27 21:30:27 +09:00
parent 840dc81f55
commit be6bdcd239
28 changed files with 236 additions and 22 deletions

View File

@@ -0,0 +1,16 @@
module.exports = function ShellCtrl($scope, $rootScope) {
$scope.results = []
$scope.run = function(command) {
var cmd = $rootScope.control.shell(command)
return cmd.promise
.progressed(function(results) {
$scope.results = results
$scope.$digest()
})
.then(function(results) {
$scope.results = results
$scope.$digest()
})
}
}