refresh updates when user enters the app configure view

check for updates, if the app has a pending update. this handles two cases:
1. user got a valid subscription. this will make the updates get the manifest field
2. user has not refreshed the ui in a while or updated via cli tool. this will ensure we are not holding to a dangling update
This commit is contained in:
Girish Ramakrishnan
2022-06-23 12:59:14 -07:00
parent 4ab78d25f7
commit 4a779694c3

View File

@@ -2118,6 +2118,11 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
], function (error) {
if (error) return Client.error(error);
// check for updates, if the app has a pending update. this handles two cases:
// 1. user got a valid subscription. this will make the updates get the manifest field
// 2. user has not refreshed the ui in a while or updated via cli tool. this will ensure we are not holding to a dangling update
if ($scope.config.update[$scope.app.id]) Client.checkForUpdates();
done();
});
});