kopia lustrzana https://github.com/cyoung/stratux
Added methods for doing async posts for shutdown and reboot
rodzic
1420ad16e0
commit
48eb3f7c65
|
@ -108,4 +108,13 @@ function SettingsCtrl($rootScope, $scope, $state, $http) {
|
|||
setSettings(angular.toJson(newsettings));
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
$scope.postShutdown = function () {
|
||||
$http.post('/shutdown');
|
||||
};
|
||||
|
||||
$scope.postReboot = function () {
|
||||
$http.post('/reboot');
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue