Commit ff8adc9d authored by Bryce Johnson's avatar Bryce Johnson

Use slot to use custom_icon helper.

parent dd1fdc51
......@@ -111,6 +111,7 @@
template: `
<div class='time-tracking-component-wrap' v-cloak>
<div class='sidebar-collapsed-icon'>
<slot name='stopwatch'></slot>
<div class='time-tracking-collapsed-summary'>
<div class='compare' v-if='showComparison'>
<span>{{ abbreviateTime(spentPretty) }} / {{ abbreviateTime(estimatedPretty) }}</span>
......
......@@ -409,6 +409,10 @@
}
#issuable-time-tracker {
> .stopwatch-svg {
display: none;
}
.time-tracking-help-state {
padding: 10px 0;
margin-top: 30px;
......
......@@ -79,6 +79,8 @@
.title.hide-collapsed
Time tracking
= icon('spinner spin')
.stopwatch-svg{ slot:'stopwatch' }
= custom_icon('icon_stopwatch')
- if issuable.has_attribute?(:due_date)
.block.due_date
.sidebar-collapsed-icon
......
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