Skip to content

Commit

Permalink
Merge pull request #201 from amansinghbais/199-loaderIssue
Browse files Browse the repository at this point in the history
Fixed: loader not dismissing on telecom update and truncation in facility mappings card (#199)
  • Loading branch information
ravilodhi authored Feb 19, 2024
2 parents 0918b4d + e9e6a58 commit eeffa1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/FacilityAddressModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<ion-item>
<ion-label :position="telecomNumberValue?.countryCode ? 'stacked' : 'floating'">{{ translate("Contact number") }}</ion-label>
<ion-input v-model="telecomNumberValue.contactNumber">
<ion-text>{{ telecomNumberValue?.countryCode }}</ion-text>
<ion-text>{{ `${telecomNumberValue?.countryCode}-` }}</ion-text>
</ion-input>
</ion-item>
</form>
Expand Down Expand Up @@ -180,7 +180,7 @@ export default defineComponent({
}
}
if(isTelecomNumberUpdated) this.saveTelecomNumber()
if(isTelecomNumberUpdated) await this.saveTelecomNumber()
modalController.dismiss({ postalAddress })
emitter.emit('dismissLoader')
Expand Down
2 changes: 1 addition & 1 deletion src/views/AddFacilityAddress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<ion-item lines="none">
<ion-label :position="countryCode ? 'stacked' : 'floating'">{{ translate("Contact number") }}</ion-label>
<ion-input v-model="contactNumber">
<ion-text>{{ countryCode }}</ion-text>
<ion-text>{{ `${countryCode}-` }}</ion-text>
</ion-input>
</ion-item>
</ion-list>
Expand Down
7 changes: 5 additions & 2 deletions src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<h3>{{ postalAddress.address2 }}</h3>
<p class="ion-text-wrap">{{ postalAddress.postalCode ? `${postalAddress.city}, ${postalAddress.postalCode}` : postalAddress.city }}</p>
<p class="ion-text-wrap">{{ postalAddress.countryGeoName ? `${postalAddress.stateGeoName}, ${postalAddress.countryGeoName}` : postalAddress.stateGeoName }}</p>
<p class="ion-text-wrap" v-if="telecomNumber">{{ `${telecomNumber.countryCode}${telecomNumber.contactNumber}` }}</p>
<p class="ion-text-wrap" v-if="telecomNumber">{{ `${telecomNumber.countryCode}-${telecomNumber.contactNumber}` }}</p>
</ion-label>
</ion-item>
<ion-button fill="clear" @click="openAddressModal">{{ translate("Edit") }}</ion-button>
Expand Down Expand Up @@ -352,6 +352,9 @@
<ion-card-title>
{{ externalMappingTypes[mapping.facilityIdenTypeId] }}
</ion-card-title>
<ion-button fill="clear" @click="copyToClipboard(mapping.idValue, 'Copied to clipboard')">
<ion-icon slot="icon-only" :icon="copyOutline" />
</ion-button>
</ion-card-header>
<ion-item lines="full">
<ion-label>{{ translate('Identification') }}</ion-label>
Expand All @@ -372,7 +375,7 @@
</ion-button>
</ion-card-header>
<ion-item lines="full">
<ion-label slot="start">{{ translate('Identification') }}</ion-label>
<ion-label>{{ translate('Identification') }}</ion-label>
<ion-label slot="end">{{ current.externalId }}</ion-label>
</ion-item>
<!-- Using blur to remove the focus from button on click, as we need to focus the input field inside the modal opened
Expand Down

0 comments on commit eeffa1f

Please sign in to comment.