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.

55 lines
977 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>
<div>
<slot name="before"></slot>
<gl-button
v-if="showBackButton"
category="secondary"
data-testid="back-button"
@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>