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