BigW Consortium Gitlab

Commit c9b63924 by Regis

conform to status object for svg icon names

parent e86c5570
......@@ -14,7 +14,7 @@
svg() {
return document
.querySelector(
`.${this.stage.status}-icon-svg.hidden`,
`.icon_status_${this.stage.status}`,
).innerHTML;
},
},
......
......@@ -15,14 +15,12 @@
},
svg() {
return document
.querySelector(
`.${this.pipeline.details.status.text}-icon-svg.hidden`,
).innerHTML;
.querySelector(`.${this.pipeline.details.status.icon}`).innerHTML;
},
},
template: `
<td class="commit-link">
<a :href='pipeline.url'>
<a :href='pipeline.details.status.details_path'>
<span :class='cssClasses'>
<span v-html='svg'></span>
<span>&nbsp;{{pipeline.details.status.text}}</span>
......
......@@ -42,21 +42,21 @@
- else
.commit-icon-svg.hidden
= custom_icon("icon_commit")
.canceled-icon-svg.hidden
.icon_status_canceled.hidden
= custom_icon("icon_status_canceled")
.running-icon-svg.hidden
.icon_status_running.hidden
= custom_icon("icon_status_running")
.skipped-icon-svg.hidden
.icon_status_skipped.hidden
= custom_icon("icon_status_skipped")
.created-icon-svg.hidden
.icon_status_created.hidden
= custom_icon("icon_status_created")
.pending-icon-svg.hidden
.icon_status_pending.hidden
= custom_icon("icon_status_pending")
.success-icon-svg.hidden
.icon_status_success.hidden
= custom_icon("icon_status_success")
.failed-icon-svg.hidden
.icon_status_failed.hidden
= custom_icon("icon_status_failed")
.warning-icon-svg.hidden
.icon_status_warning.hidden
= custom_icon("icon_status_warning")
.vue-pipelines-index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment