caas: show notifications

update notification will be moved to backend
This commit is contained in:
Girish Ramakrishnan
2019-03-07 13:25:18 -08:00
parent b96098b909
commit 64a58921a8

View File

@@ -83,14 +83,6 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
});
}
function runConfigurationChecks() {
if ($scope.config.update && $scope.config.update.box) {
Client.notify('Update Available', 'Update now to version ' + $scope.config.update.box.version + '.', true, 'success', '/#/settings');
}
refreshNotifications();
}
$scope.fetchAppstoreProfileAndSubscription = function (callback) {
Client.getAppstoreConfig(function (error, appstoreConfig) {
if (error) return callback(error);
@@ -175,9 +167,9 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
$scope.initialized = true;
if (!$scope.config.managed) {
runConfigurationChecks();
refreshNotifications();
if (!$scope.config.managed) {
$scope.fetchAppstoreProfileAndSubscription(function (error) {
if (error) console.error(error);