mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 01:53:27 +02:00
- Bringing back browser, navigation, input, dashboard and shell templates.
This commit is contained in:
16
res/app/control-panes/dashboard/shell/shell-controller.js
Normal file
16
res/app/control-panes/dashboard/shell/shell-controller.js
Normal 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()
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user