Handle app states for opening apps

This commit is contained in:
Johannes Zellner
2022-09-11 17:40:59 +02:00
parent 313c871c50
commit 2d901b2e2b
3 changed files with 31 additions and 14 deletions

View File

@@ -110,19 +110,6 @@ app.config(['$routeProvider', function ($routeProvider) {
}).otherwise({ redirectTo: '/'});
}]);
app.filter('installError', function () {
return function (app) {
if (!app) return false;
if (app.installationState === ISTATES.ERROR) return true;
if (app.installationState === ISTATES.INSTALLED) {
// app.health can also be null to indicate insufficient data
if (app.health === HSTATES.UNHEALTHY || app.health === HSTATES.ERROR || app.health === HSTATES.DEAD) return true;
}
return false;
};
});
app.filter('activeTask', function () {
return function (app) {
if (!app) return false;