add spinner to shop address fetch

This commit is contained in:
Bill Richardson 2026-02-06 12:52:34 -05:00
parent f5671cd53c
commit 73e1ba0475

View file

@ -105,6 +105,7 @@ import googleMap from '@/iss-components/google-map/google-map.vue';
// Supporting files
import baseMixin from '@/mixins/base-mixin.js';
import showIssLoadingModal from '@/helpers/loading-modal-helper.js';
import { toTitleCase } from '@/helpers/text-helper.js';
import { markRaw } from 'vue';
import { getAvailabilityRating } from '@/helpers/service-location-helper';
@ -243,7 +244,9 @@ export default {
if (this.openingModal) {
return;
}
showIssLoadingModal(true);
const shopsUpdated = await this.updateShops();
showIssLoadingModal(false);
if (shopsUpdated) {
await this.$nextTick();
this.$refs[SERVICE_ZIP_QUESTION_REF_NAME].internalZipcode = '';
@ -253,7 +256,9 @@ export default {
if (this.openingModal) {
return;
}
showIssLoadingModal(true);
await this.updateShops();
showIssLoadingModal(false);
}
},
methods: {