Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Oct 10, 2024
1 parent 2e79964 commit f4d99b7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
22 changes: 15 additions & 7 deletions src/components/cylc/Info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
:class="{satisfied: condition.satisfied}"
>
{{ condition.exprAlias.replace(/c/, '') }}
</span>
<span style="margin-left: 0.5em">
{{ condition.taskId }}:{{ condition.reqState }}

<span style="margin-left: 0.5em; color: rgb(0,0,0)">
{{ condition.taskId }}:{{ condition.reqState }}
</span>
</span>
</li>
</ul>
Expand Down Expand Up @@ -206,18 +207,25 @@ export default {
// for user-defined text where whitespace should be preserved
.markup {
white-space: pre;
white-space: pre-wrap;
}
// change the appearance of satisfied/unsatisfied conditions
.condition {
opacity: 0.6;
}
.condition.satisfied {
opacity: 1;
}
// prefixes a tick or cross before the entry
.condition:before {
content: '';
content: '\25CB';
padding-right: 0.5em;
color: rgb(0, 0, 0);
}
.condition.satisfied:before {
content: '';
color: rgb(75, 230, 75);
content: '\25CF';
}
// for prerequsite task "aliases" (used in conditional expressions)
Expand Down
7 changes: 4 additions & 3 deletions src/views/Info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ class InfoCallback extends DeltasCallback {
/**
* @param {Results} results
*/
constructor (taskNode) {
constructor (task, taskNode) {
super()
this.task = {}
this.task = task
this.taskNode = taskNode
}
Expand Down Expand Up @@ -219,6 +219,7 @@ export default {
requestedTask: undefined,
// The task formatted as a data-store node
task: {},
taskNode: {},
}
},
Expand All @@ -233,7 +234,7 @@ export default {
{ ...this.variables, taskID: this.requestedTokens?.relativeID },
`info-query-${this._uid}`,
[
new InfoCallback(this.taskNode)
new InfoCallback(this.task, this.taskNode)
],
/* isDelta */ true,
/* isGlobalCallback */ false
Expand Down

0 comments on commit f4d99b7

Please sign in to comment.