Admin: More distinctive coloring for different task states.

This commit is contained in:
baldo 2020-04-08 23:50:17 +02:00
parent 8b8835e4ac
commit d97635d32a
2 changed files with 12 additions and 2 deletions

View file

@ -10,10 +10,18 @@
} }
.task-disabled { .task-disabled {
color: lightcoral; color: #eea236;
text-decoration: line-through; text-decoration: line-through;
} }
.task-state-running {
color: darkblue;
}
.task-state-failed {
color: red;
}
.task-description { .task-description {
max-width: 220px; max-width: 220px;
} }

View file

@ -381,7 +381,9 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
if (!task) { if (!task) {
return; return;
} }
return 'task-' + field + ' ' + (task.values.enabled ? 'task-enabled' : 'task-disabled'); return 'task-' + field + ' ' +
(task.values.enabled ? 'task-enabled' : 'task-disabled') + ' '
+ 'task-state-' + task.values.state;
}; };
} }