Show notification if reboot is required

This commit is contained in:
Johannes Zellner
2018-11-26 08:48:58 +01:00
parent 1783059fd4
commit 07edcc5f94
2 changed files with 18 additions and 0 deletions
+11
View File
@@ -94,6 +94,17 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
false /* persistent */, 'info', actionScope);
}
});
Client.isRebootRequired(function (error, isRequired) {
if (error) return console.error(error);
if (!isRequired) return;
var actionScope = $scope.$new(true);
actionScope.action = '/#/system';
Client.notify('Reboot Required', 'To finish security updates, a reboot is necessary.', true /* persistent */, 'warning', actionScope);
});
}
$scope.fetchAppstoreProfileAndSubscription = function (callback) {