mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 03:53:28 +02:00
All transaction-based ControlService methods now return promises directly, which makes it easier to integrate with other promises, is simpler and opens up new refactoring opportunities.
This commit is contained in:
@@ -11,10 +11,9 @@ module.exports = function ShellCtrl($scope, gettext) {
|
||||
return
|
||||
}
|
||||
|
||||
var cmd = $scope.control.shell(command)
|
||||
$scope.command = ''
|
||||
|
||||
return cmd.promise
|
||||
return $scope.control.shell(command)
|
||||
.progressed(function(result) {
|
||||
$scope.result = result
|
||||
$scope.data = result.data.join('')
|
||||
|
||||
Reference in New Issue
Block a user