Commit 38ac2b7c authored by Matej Latin's avatar Matej Latin Committed by Olena Horal-Koretska

Replace the pipelines nav controls buttons

parent e78a4382
<script> <script>
import { GlDeprecatedButton } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
import LoadingButton from '~/vue_shared/components/loading_button.vue'; import LoadingButton from '~/vue_shared/components/loading_button.vue';
export default { export default {
name: 'PipelineNavControls', name: 'PipelineNavControls',
components: { components: {
LoadingButton, LoadingButton,
GlDeprecatedButton, GlButton,
}, },
props: { props: {
newPipelinePath: { newPipelinePath: {
...@@ -42,14 +42,15 @@ export default { ...@@ -42,14 +42,15 @@ export default {
</script> </script>
<template> <template>
<div class="nav-controls"> <div class="nav-controls">
<gl-deprecated-button <gl-button
v-if="newPipelinePath" v-if="newPipelinePath"
:href="newPipelinePath" :href="newPipelinePath"
variant="success" variant="success"
category="primary"
class="js-run-pipeline" class="js-run-pipeline"
> >
{{ s__('Pipelines|Run Pipeline') }} {{ s__('Pipelines|Run Pipeline') }}
</gl-deprecated-button> </gl-button>
<loading-button <loading-button
v-if="resetCachePath" v-if="resetCachePath"
...@@ -59,8 +60,8 @@ export default { ...@@ -59,8 +60,8 @@ export default {
@click="onClickResetCache" @click="onClickResetCache"
/> />
<gl-deprecated-button v-if="ciLintPath" :href="ciLintPath" class="js-ci-lint"> <gl-button v-if="ciLintPath" :href="ciLintPath" class="js-ci-lint">
{{ s__('Pipelines|CI Lint') }} {{ s__('Pipelines|CI Lint') }}
</gl-deprecated-button> </gl-button>
</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