Commit c9b63924 authored by Regis's avatar Regis

conform to status object for svg icon names

parent e86c5570
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
svg() { svg() {
return document return document
.querySelector( .querySelector(
`.${this.stage.status}-icon-svg.hidden`, `.icon_status_${this.stage.status}`,
).innerHTML; ).innerHTML;
}, },
}, },
......
...@@ -15,14 +15,12 @@ ...@@ -15,14 +15,12 @@
}, },
svg() { svg() {
return document return document
.querySelector( .querySelector(`.${this.pipeline.details.status.icon}`).innerHTML;
`.${this.pipeline.details.status.text}-icon-svg.hidden`,
).innerHTML;
}, },
}, },
template: ` template: `
<td class="commit-link"> <td class="commit-link">
<a :href='pipeline.url'> <a :href='pipeline.details.status.details_path'>
<span :class='cssClasses'> <span :class='cssClasses'>
<span v-html='svg'></span> <span v-html='svg'></span>
<span>&nbsp;{{pipeline.details.status.text}}</span> <span>&nbsp;{{pipeline.details.status.text}}</span>
......
...@@ -42,21 +42,21 @@ ...@@ -42,21 +42,21 @@
- else - else
.commit-icon-svg.hidden .commit-icon-svg.hidden
= custom_icon("icon_commit") = custom_icon("icon_commit")
.canceled-icon-svg.hidden .icon_status_canceled.hidden
= custom_icon("icon_status_canceled") = custom_icon("icon_status_canceled")
.running-icon-svg.hidden .icon_status_running.hidden
= custom_icon("icon_status_running") = custom_icon("icon_status_running")
.skipped-icon-svg.hidden .icon_status_skipped.hidden
= custom_icon("icon_status_skipped") = custom_icon("icon_status_skipped")
.created-icon-svg.hidden .icon_status_created.hidden
= custom_icon("icon_status_created") = custom_icon("icon_status_created")
.pending-icon-svg.hidden .icon_status_pending.hidden
= custom_icon("icon_status_pending") = custom_icon("icon_status_pending")
.success-icon-svg.hidden .icon_status_success.hidden
= custom_icon("icon_status_success") = custom_icon("icon_status_success")
.failed-icon-svg.hidden .icon_status_failed.hidden
= custom_icon("icon_status_failed") = custom_icon("icon_status_failed")
.warning-icon-svg.hidden .icon_status_warning.hidden
= custom_icon("icon_status_warning") = custom_icon("icon_status_warning")
.vue-pipelines-index .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