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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user