debian-mirror-gitlab/app/assets/javascripts/pipeline_wizard/components/step_nav.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1,023 B
Vue
Raw Normal View History

2022-04-04 11:22:00 +05:30
<script>
import { GlButton } from '@gitlab/ui';
export default {
name: 'StepNav',
components: {
GlButton,
},
props: {
showBackButton: {
type: Boolean,
required: false,
default: false,
},
showNextButton: {
type: Boolean,
required: false,
default: false,
},
nextButtonEnabled: {
type: Boolean,
required: false,
default: true,
},
},
};
</script>
<template>
2023-03-04 22:38:38 +05:30
<div class="gl-display-flex">
2022-04-04 11:22:00 +05:30
<slot name="before"></slot>
<gl-button
v-if="showBackButton"
category="secondary"
data-testid="back-button"
2023-03-04 22:38:38 +05:30
class="gl-mr-3"
2022-04-04 11:22:00 +05:30
@click="$emit('back')"
>
{{ __('Back') }}
</gl-button>
<gl-button
v-if="showNextButton"
:disabled="!nextButtonEnabled"
category="primary"
data-testid="next-button"
variant="confirm"
@click="$emit('next')"
>
{{ __('Next') }}
</gl-button>
<slot name="after"></slot>
</div>
</template>
<style scoped></style>