From 48eb3f7c659b372be9a52330081b95b16d30a5cc Mon Sep 17 00:00:00 2001 From: Brad Ward Date: Sat, 9 Jan 2016 14:14:54 -0600 Subject: [PATCH] Added methods for doing async posts for shutdown and reboot --- web/plates/js/settings.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/plates/js/settings.js b/web/plates/js/settings.js index a3e560eb..28947cba 100755 --- a/web/plates/js/settings.js +++ b/web/plates/js/settings.js @@ -108,4 +108,13 @@ function SettingsCtrl($rootScope, $scope, $state, $http) { setSettings(angular.toJson(newsettings)); } }; -}; \ No newline at end of file + + $scope.postShutdown = function () { + $http.post('/shutdown'); + }; + + $scope.postReboot = function () { + $http.post('/reboot'); + }; + +};