Files
stf/res/app/control-panes/dashboard/shell/shell-controller.js
Gunther Brunner 553b89f764 - Add ngEnter.
2014-03-31 19:14:02 +09:00

17 lines
397 B
JavaScript

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()
})
}
}