Commit ae7bd2c6 authored by dzubova's avatar dzubova Committed by Peter Hegman

Fix ghost button on payment step for subscriptions

Changelog: fixed
EE: true
parent 2a3e0ce4
......@@ -124,7 +124,13 @@ export default {
:state="isValid"
:class="[!isValid && errorMessage ? 'gl-mb-5' : 'gl-mb-0', 'gl-mt-3']"
/>
<gl-button variant="success" category="primary" :disabled="!isValid" @click="nextStep">
<gl-button
v-if="nextStepButtonText"
variant="success"
category="primary"
:disabled="!isValid"
@click="nextStep"
>
{{ nextStepButtonText }}
</gl-button>
</div>
......
......@@ -167,7 +167,7 @@ describe('Step', () => {
apolloProvider: mockApollo,
});
expect(wrapper.text()).toBe('');
expect(wrapper.findComponent(GlButton).exists()).toBe(false);
});
it('is disabled when this step is not valid', () => {
......
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