Skip to content

Commit

Permalink
Merge pull request #195 from amansinghbais/192-identification-truncation
Browse files Browse the repository at this point in the history
Implemented: copy utility for identification in external mapping card and fixed truncation (#192)
  • Loading branch information
ravilodhi authored Feb 14, 2024
2 parents bfb376c + 43640ce commit 9dc38df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/FacilityDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,12 @@
<ion-card-title>
{{ translate('Facility External ID') }}
</ion-card-title>
<ion-button fill="clear" @click="copyToClipboard(current.externalId, '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>
<ion-label slot="start">{{ 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 Expand Up @@ -533,6 +536,7 @@ import {
bookmarksOutline,
closeCircleOutline,
closeOutline,
copyOutline,
chevronForwardOutline,
ellipsisVerticalOutline,
globeOutline,
Expand Down Expand Up @@ -573,6 +577,7 @@ import AddFacilityGroupModal from '@/components/AddFacilityGroupModal.vue'
import Image from '@/components/Image.vue';
import emitter from '@/event-bus'
import CreateFacilityGroupModal from '@/components/CreateFacilityGroupModal.vue';
import { copyToClipboard } from '@/utils';
export default defineComponent({
name: 'FacilityDetails',
Expand Down Expand Up @@ -1348,6 +1353,8 @@ export default defineComponent({
bookmarksOutline,
closeCircleOutline,
closeOutline,
copyOutline,
copyToClipboard,
chevronForwardOutline,
ellipsisVerticalOutline,
globeOutline,
Expand Down

0 comments on commit 9dc38df

Please sign in to comment.