Commit 1d8e8fd5 authored by Simon Knox's avatar Simon Knox

Merge branch 'migrate-bootstrap-to-glbutton-ide-jobs' into 'master'

Update bootstrap buttons to GlButton

See merge request gitlab-org/gitlab!41557
parents b5af728d d041fe34
......@@ -2,7 +2,7 @@
/* eslint-disable vue/no-v-html */
import { mapActions, mapState } from 'vuex';
import { throttle } from 'lodash';
import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { GlTooltipDirective, GlButton, GlIcon } from '@gitlab/ui';
import { __ } from '../../../locale';
import ScrollButton from './detail/scroll_button.vue';
import JobDescription from './detail/description.vue';
......@@ -17,6 +17,7 @@ export default {
GlTooltip: GlTooltipDirective,
},
components: {
GlButton,
GlIcon,
ScrollButton,
JobDescription,
......@@ -75,9 +76,9 @@ export default {
<template>
<div class="ide-pipeline build-page d-flex flex-column flex-fill">
<header class="ide-job-header d-flex align-items-center">
<button class="btn btn-default btn-sm d-flex" @click="setDetailJob(null)">
<gl-icon name="chevron-left" /> {{ __('View jobs') }}
</button>
<gl-button category="secondary" icon="chevron-left" size="small" @click="setDetailJob(null)">
{{ __('View jobs') }}
</gl-button>
</header>
<div class="top-bar d-flex border-left-0 mr-3">
<job-description :job="detailJob" />
......
<script>
import { GlButton } from '@gitlab/ui';
import JobDescription from './detail/description.vue';
export default {
components: {
JobDescription,
GlButton,
},
props: {
job: {
......@@ -28,9 +30,9 @@ export default {
<div class="ide-job-item">
<job-description :job="job" class="gl-mr-3" />
<div class="ml-auto align-self-center">
<button v-if="job.started" type="button" class="btn btn-default btn-sm" @click="clickViewLog">
<gl-button v-if="job.started" category="secondary" size="small" @click="clickViewLog">
{{ __('View log') }}
</button>
</gl-button>
</div>
</div>
</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