Remove debug code and fixup ISTATE usage

This commit is contained in:
Johannes Zellner
2019-09-23 16:53:48 +02:00
parent f283618209
commit 1efe82dda2
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -673,7 +673,7 @@
<br/>
Installed <span class="app-info-meta text-small">{{ app.creationTime | prettyDate }}</a> </span>
<br/>
<span ng-show="app.error" class="text-danger"><br/>Error <b ng-show="app.error.message">{{ app.error.message }}</b><br/></span>
<span ng-show="app.error" class="text-danger"><br/>Error: <b>{{ app.error.message }}</b><br/></span>
</div>
</div>
</div>
+1 -3
View File
@@ -770,8 +770,6 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
var app = $scope.app;
console.log(app)
// old versions may not have this set
if (!app.error.task) {
$('#repairModal').modal('show');
@@ -786,7 +784,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
} else if (app.error.task.installationState === ISTATES.PENDING_RESIZE) {
// memory
$('#repairModal').modal('show');
} else if (app.error.task.installationState === ISTATES.ISTATE_PENDING_RECREATE_CONTAINER) {
} else if (app.error.task.installationState === ISTATES.PENDING_RECREATE_CONTAINER) {
// email, mailbox
$('#repairModal').modal('show');
} else if (app.error.task.installationState === ISTATES.PENDING_LOCATION_CHANGE || app.error.task.installationState === ISTATES.PENDING_INSTALL) {