Commit 1b2c0a7f authored by Tim Zallmann's avatar Tim Zallmann

Replaced Icon with Sprite Icon

parent 9b4ad794
<script> <script>
import arrowSvg from 'icons/_arrow_mini_pipeline_graph.svg'; import arrowSvg from 'icons/_arrow_mini_pipeline_graph.svg';
import { borderlessStatusIconEntityMap } from '../../vue_shared/ci_status_icons'; import icon from './icon.vue';
import ciStatus from './ci_icon.vue'; import ciStatus from './ci_icon.vue';
import tooltip from '../directives/tooltip'; import tooltip from '../directives/tooltip';
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
}, },
components: { components: {
ciStatus, ciStatus,
icon,
}, },
computed: { computed: {
// Exactly one of these (triggeredBy and triggered) must be truthy. Never both. Never neither. // Exactly one of these (triggeredBy and triggered) must be truthy. Never both. Never neither.
...@@ -68,7 +69,7 @@ ...@@ -68,7 +69,7 @@
return `${pipeline.project.name} - ${pipeline.details.status.label}`; return `${pipeline.project.name} - ${pipeline.details.status.label}`;
}, },
getStatusIcon(icon) { getStatusIcon(icon) {
return borderlessStatusIconEntityMap[icon]; return `${icon}_borderless`;
}, },
triggerButtonClass(group) { triggerButtonClass(group) {
return `ci-status-icon-${group}`; return `ci-status-icon-${group}`;
...@@ -102,8 +103,9 @@ ...@@ -102,8 +103,9 @@
:title="pipelineTooltipText(pipeline)" :title="pipelineTooltipText(pipeline)"
data-placement="top" data-placement="top"
data-container="body" data-container="body"
:class="triggerButtonClass(pipeline.details.status.group)" :class="triggerButtonClass(pipeline.details.status.group)">
v-html="getStatusIcon(pipeline.details.status.icon)"> <icon
:name="getStatusIcon(pipeline.details.status.icon)"/>
</a> </a>
<a <a
......
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