Merge pull request #14 from sgotti/tasks_skipped_color

tasks: show skipped tasks with dedicated color
This commit is contained in:
Simone Gotti 2019-09-03 11:22:22 +02:00 committed by GitHub
commit 43640ec9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}