Remove wrench and add action description on error

This commit is contained in:
Johannes Zellner
2019-08-30 21:21:44 +02:00
parent 38a7c222a8
commit 8ccc7bb734
2 changed files with 8 additions and 7 deletions
+7 -6
View File
@@ -285,7 +285,7 @@ app.filter('prettyDiskSize', function () {
});
app.filter('installationActive', function () {
return function(app) {
return function (app) {
if (app.installationState === ISTATES.ERROR) return false;
if (app.installationState === ISTATES.INSTALLED) return false;
return true;
@@ -293,8 +293,8 @@ app.filter('installationActive', function () {
});
// this appears in the app grid
app.filter('installationStateLabel', function() {
return function(app) {
app.filter('installationStateLabel', function () {
return function(app, user) {
var waiting = app.progress === 0 ? ' (Queued)' : '';
switch (app.installationState) {
@@ -306,9 +306,10 @@ app.filter('installationStateLabel', function() {
case ISTATES.PENDING_RESTORE: return 'Restoring' + waiting;
case ISTATES.PENDING_UPDATE: return 'Updating' + waiting;
case ISTATES.PENDING_BACKUP: return 'Backing up' + waiting;
case ISTATES.ERROR:
if (app.error && app.error.message === 'ETRYAGAIN') return 'DNS Error';
return 'Error';
case ISTATES.ERROR: {
if (app.error && app.error.message === 'ETRYAGAIN') return 'DNS Error' + (user.admin ? ' - Click to Repair' : '');
return 'Error' + (user.admin ? ' - Click to Repair' : '');
}
case ISTATES.INSTALLED: {
if (app.debugMode) {
return app.debugMode.readonlyRootfs ? 'Paused (Repair)' : 'Paused (Debug)';