Commit 14fcb9fe authored by Jannik Lehmann's avatar Jannik Lehmann

Refactored sidebar jobs details container badge

This commit solves: https://gitlab.com/gitlab-org/gitlab/-/issues/344292
It refactors the sidebar jobs details container badge
to be Pajamas-compliant.

Changelog: changed
parent 6699578e
<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