caas: show notifications
update notification will be moved to backend
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user