Move reboot server dialog and logic to main view
This commit is contained in:
@@ -29,26 +29,6 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
return getRandomColor();
|
||||
}
|
||||
|
||||
$scope.reboot = {
|
||||
busy: false,
|
||||
show: function () {
|
||||
$scope.reboot.busy = false;
|
||||
$('#rebootModal').modal('show');
|
||||
},
|
||||
submit: function () {
|
||||
$scope.reboot.busy = true;
|
||||
|
||||
Client.reboot(function (error) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
$('#rebootModal').modal('hide');
|
||||
|
||||
// trigger refetch to show offline banner
|
||||
$timeout(function () { Client.getStatus(function () {}); }, 8000);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.disks = {
|
||||
busy: true,
|
||||
errorMessage: '',
|
||||
|
||||
Reference in New Issue
Block a user