Merge pull request #2113 from Safelite/feature/csr-2366

Use loading modal for navigation on payment-method.
This commit is contained in:
chloeherdsafelite 2024-11-14 16:16:56 -05:00 committed by GitHub
commit 2153443a81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -113,5 +113,7 @@ function setupMocks() {
const wrapper = shallowMount(customerDetails, mountOptions);
wrapper.vm.$refs.loadingModal.showModal = jest.fn();
return { wrapper };
}

View file

@ -525,6 +525,8 @@ export default {
async forwardButtonAction() {
this.forwardClicked = true;
this.$refs.loadingModal.showModal();
await this.dispatchStoreAction(
storeActions.SAVE_PAYMENT_METHOD_CHOICE,
this.paymentMethod,
@ -575,7 +577,6 @@ export default {
}
},
async setupPia() {
this.$refs.loadingModal.showModal();
// we need a work order number for pia so we can pass it to safeliteHop.
// this will create one in delete substatus.
try {