Skip to content

Commit

Permalink
change color for changed tasks (before not different from not-changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
a.ovseenko committed Apr 17, 2024
1 parent 63a2c01 commit c9cb271
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion saltgui/static/scripts/output/Output.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,11 @@ export class Output {
if (pTask.result === null) {
pSpan.classList.add("task-skipped");
} else if (pTask.result) {
pSpan.classList.add("task-success");
if (nrChanges) {
pSpan.classList.add("task-changes-success");
} else {
pSpan.classList.add("task-success");
}
} else {
pSpan.classList.add("task-failure");
}
Expand Down
4 changes: 4 additions & 0 deletions saltgui/static/stylesheets/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ table tr td:last-of-type {
color: lime;
}

.taskcircle.task-changes-success {
color: aqua;
}

.taskcircle.task-failure {
color: red;
}
Expand Down

0 comments on commit c9cb271

Please sign in to comment.