From 64a58921a8512000ae5f8d75cb3a366d5520d6a1 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 7 Mar 2019 13:25:18 -0800 Subject: [PATCH] caas: show notifications update notification will be moved to backend --- src/js/main.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/js/main.js b/src/js/main.js index 446efe42e..2c4ca0945 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -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);