tasks: show skipped tasks with dedicated color

This commit is contained in:
Simone Gotti 2019-09-03 10:21:45 +02:00
parent ee60775243
commit 8b0a3ea271
4 changed files with 11 additions and 0 deletions

View File

@ -87,6 +87,7 @@ export default {
if (task.status == "failed") return "failed";
if (task.status == "stopped") return "failed";
if (task.status == "running") return "running";
if (task.status == "skipped") return "skipped";
return "unknown";
}
},

View File

@ -148,6 +148,7 @@ export default {
if (task.status == "failed") return "failed";
if (task.status == "stopped") return "failed";
if (task.status == "running") return "running";
if (task.status == "skipped") return "skipped";
return "unknown";
},
update(tasks) {

View File

@ -77,6 +77,7 @@ export default {
if (task.status == "failed") return "is-failed";
if (task.status == "stopped") return "is-failed";
if (task.status == "running") return "is-running";
if (task.status == "skipped") return "is-skipped";
return "unknown";
},
async fetchRun() {

View File

@ -85,6 +85,14 @@
@apply bg-blue-500 text-white;
}
.skipped {
@apply border-gray-800;
}
.is-skipped {
@apply bg-gray-800 text-white;
}
.unknown {
@apply border-gray-400;
}