Set text based on debugMode

Fixes cloudron/box#553
This commit is contained in:
Girish Ramakrishnan
2018-05-15 12:07:57 -07:00
parent f05967d871
commit 0cd6f7f2e7
+3 -1
View File
@@ -188,7 +188,9 @@ app.filter('installationStateLabel', function() {
case ISTATES.PENDING_BACKUP: return 'Backing up' + waiting;
case ISTATES.ERROR: return detailedError(app);
case ISTATES.INSTALLED: {
if (app.runState === 'running') {
if (app.debugMode) {
return app.debugMode.readonlyRootfs ? 'Paused (Repair)' : 'Paused (Debug)';
} else if (app.runState === 'running') {
if (!app.health) return 'Starting...'; // no data yet
if (app.health === HSTATES.HEALTHY) return 'Running';
return 'Not responding'; // dead/exit/unhealthy