Skip to content

Commit

Permalink
Improved: checks and conditions for picked status as same as complete…
Browse files Browse the repository at this point in the history
…d status
  • Loading branch information
amansinghbais committed Feb 8, 2024
1 parent 0bf0631 commit f434aa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Picklist-detail-item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>{{ $t("Color") }} : {{ $filters.getFeatures(getProduct(picklistItem.productId).featureHierarchy, '1/COLOR/') }}</p>
<p>{{ $t("Size") }} : {{ $filters.getFeatures(getProduct(picklistItem.productId).featureHierarchy, '1/SIZE/') }}</p>
</ion-label>
<ion-checkbox v-if="picklistItem.statusId !== 'PICKLIST_COMPLETED'" :modelValue="picklistItem.isChecked" slot="end" />
<ion-checkbox v-if="picklistItem.statusId !== 'PICKLIST_COMPLETED' && picklistItem.statusId !== 'PICKLIST_PICKED'" :modelValue="picklistItem.isChecked" slot="end" />
</ion-item>
</template>

Expand Down
4 changes: 2 additions & 2 deletions src/views/Picklist-Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ion-back-button default-href="/" slot="start" />
<ion-title>{{ id }}</ion-title>
<ion-buttons slot="end">
<ion-button @click="selectAll" v-if="picklist.statusId !== 'PICKLIST_COMPLETED'">{{ $t ("Select all") }}</ion-button>
<ion-button @click="selectAll" v-if="picklist.statusId !== 'PICKLIST_COMPLETED' && picklist.statusId !== 'PICKLIST_PICKED'">{{ $t ("Select all") }}</ion-button>
<ion-menu-button>
<ion-icon :icon="swapVerticalOutline" />
</ion-menu-button>
Expand All @@ -46,7 +46,7 @@
</ion-list>
</ion-content>

<ion-footer v-if="picklist.statusId !== 'PICKLIST_COMPLETED'">
<ion-footer v-if="picklist.statusId !== 'PICKLIST_COMPLETED' && picklist.statusId !== 'PICKLIST_PICKED'">
<ion-toolbar>
<ion-buttons class="footer-buttons">
<ion-button class="action-button" fill="outline" color="secondary" @click="scanCode()">
Expand Down

0 comments on commit f434aa1

Please sign in to comment.