Commit 8953dabe authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch...

Merge branch '219820-matej-replace-gl-deprecated-button-with-gl-button-in-app-assets-javascripts-pipelines-components' into 'master'

Replace the pipelines nav controls buttons

Closes #219820

See merge request gitlab-org/gitlab!39189
parents 5f4ef52c 38ac2b7c
<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