Skip to content

Commit

Permalink
Merge pull request #42 from ymaheshwari1/#1ye5r94
Browse files Browse the repository at this point in the history
Added: if condition to only show order label when order id is available(#1ye5r94)
  • Loading branch information
adityasharma7 authored Jan 12, 2022
2 parents 9bdb92a + 6934074 commit 150d274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/OrderItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ion-item lines="none">
<ion-label>
<h1>{{ order.customerName }}</h1>
<p>{{ $t('Order') }}: {{ $filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId) }}</p>
<p v-if="$filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId)">{{ $t('Order') }}: {{ $filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId) }}</p>
</ion-label>
<ion-badge v-if="order.orderDate" color="dark" slot="end">{{ moment.utc(order.orderDate).fromNow() }}</ion-badge>
<slot name="packedTime">
Expand Down
2 changes: 1 addition & 1 deletion src/views/OrderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ion-item lines="none">
<ion-label>
<h2>{{ order.customerName }}</h2>
<p>{{ $t('Order') }}: {{ $filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId) }}</p>
<p v-if="$filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId)">{{ $t('Order') }}: {{ $filters.getOrderIdentificationId(order.orderIdentifications, orderIdentificationTypeId) }}</p>
</ion-label>
<ion-badge v-if="order.orderDate" color="dark" slot="end">{{ moment.utc(order.orderDate).fromNow() }}</ion-badge>
</ion-item>
Expand Down

0 comments on commit 150d274

Please sign in to comment.