Commit 7f5d94f4 authored by Mark Florian's avatar Mark Florian

Merge branch 'jnnkl-gl-badge-sidebar-job-details' into 'master'

Refactored sidebar jobs details container badge

See merge request gitlab-org/gitlab!77675
parents e0496ae5 14fcb9fe
<script> <script>
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import { GlBadge } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper'; import { helpPagePath } from '~/helpers/help_page_helper';
import { timeIntervalInWords } from '~/lib/utils/datetime_utility'; import { timeIntervalInWords } from '~/lib/utils/datetime_utility';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
...@@ -10,6 +11,7 @@ export default { ...@@ -10,6 +11,7 @@ export default {
name: 'JobSidebarDetailsContainer', name: 'JobSidebarDetailsContainer',
components: { components: {
DetailRow, DetailRow,
GlBadge,
}, },
mixins: [timeagoMixin], mixins: [timeagoMixin],
computed: { computed: {
...@@ -100,12 +102,7 @@ export default { ...@@ -100,12 +102,7 @@ export default {
<p v-if="hasTags" class="build-detail-row" data-testid="job-tags"> <p v-if="hasTags" class="build-detail-row" data-testid="job-tags">
<span class="font-weight-bold">{{ __('Tags:') }}</span> <span class="font-weight-bold">{{ __('Tags:') }}</span>
<span <gl-badge v-for="(tag, i) in job.tags" :key="i" variant="info">{{ tag }}</gl-badge>
v-for="(tag, i) in job.tags"
:key="i"
class="badge badge-pill badge-primary gl-badge sm"
>{{ tag }}</span
>
</p> </p>
</div> </div>
</template> </template>
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