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

Replace the pipelines nav controls buttons

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