Move reboot required check to server side notification
This commit is contained in:
@@ -88,13 +88,6 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
Client.notify('Update Available', 'Update now to version ' + $scope.config.update.box.version + '.', true, 'success', '/#/settings');
|
||||
}
|
||||
|
||||
Client.isRebootRequired(function (error, isRequired) {
|
||||
if (error) return console.error(error);
|
||||
if (!isRequired) return;
|
||||
|
||||
Client.notify('Reboot Required', 'To finish security updates, a reboot is necessary.', true /* persistent */, 'warning', '/#/system');
|
||||
});
|
||||
|
||||
refreshNotifications();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user