Commit bc0fe79a authored by Peter Hegman's avatar Peter Hegman

Merge branch 'dz/344038-fix-ghost-button-on-payment' into 'master'

Fix ghost button on payment step for subscriptions

See merge request gitlab-org/gitlab!73293
parents 3cb4aaa8 ae7bd2c6
......@@ -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