-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: Made download rejected orders button functional (#715).
- Loading branch information
Showing
4 changed files
with
566 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,86 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Used reasons") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list v-if="usedReasons.length"> | ||
<ion-item v-for="(reason, index) in usedReasons" :key="reason.enumId" :lines="usedReasons.length -1 === index ? 'none' : 'inset'"> | ||
<ion-label> | ||
{{ reason.description }} | ||
<p>{{ reason.enumTypeId }}</p> | ||
</ion-label> | ||
<ion-note slot="end"> {{ reason.count }}</ion-note> | ||
</ion-item> | ||
</ion-list> | ||
<div class="empty-state" v-else> | ||
<p>{{ translate("No reasons found.") }}</p> | ||
</div> | ||
</ion-content> | ||
</template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ translate("Used reasons") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
<ion-content> | ||
<ion-list v-if="usedReasons.length"> | ||
<ion-item v-for="(reason, index) in usedReasons" :key="reason.enumId" :lines="usedReasons.length -1 === index ? 'none' : 'inset'"> | ||
<ion-label> | ||
{{ reason.description }} | ||
<p>{{ reason.enumTypeId }}</p> | ||
</ion-label> | ||
<ion-note slot="end"> {{ reason.count }}</ion-note> | ||
</ion-item> | ||
</ion-list> | ||
<div class="empty-state" v-else> | ||
<p>{{ translate("No reasons found.") }}</p> | ||
</div> | ||
</ion-content> | ||
</template> | ||
|
||
<script> | ||
import { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonNote, | ||
IonTitle, | ||
IonToolbar, | ||
modalController } from "@ionic/vue"; | ||
import { computed, defineComponent } from "vue"; | ||
import { mapGetters } from 'vuex'; | ||
import { closeOutline, pricetag } from "ionicons/icons"; | ||
import { getProductIdentificationValue, translate, useProductIdentificationStore } from '@hotwax/dxp-components'; | ||
<script> | ||
import { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonNote, | ||
IonTitle, | ||
IonToolbar, | ||
modalController } from "@ionic/vue"; | ||
import { computed, defineComponent } from "vue"; | ||
import { mapGetters } from 'vuex'; | ||
import { closeOutline, pricetag } from "ionicons/icons"; | ||
import { getProductIdentificationValue, translate, useProductIdentificationStore } from '@hotwax/dxp-components'; | ||
export default defineComponent({ | ||
name: "RejectedItemsModal", | ||
components: { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonNote, | ||
IonTitle, | ||
IonToolbar | ||
}, | ||
computed: { | ||
...mapGetters({ | ||
usedReasons: 'rejection/getUsedReasons', | ||
}) | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss({ dismissed: true }); | ||
}, | ||
}, | ||
setup() { | ||
const productIdentificationStore = useProductIdentificationStore(); | ||
let productIdentificationPref = computed(() => productIdentificationStore.getProductIdentificationPref) | ||
return { | ||
closeOutline, | ||
pricetag, | ||
productIdentificationPref, | ||
productIdentificationStore, | ||
getProductIdentificationValue, | ||
translate | ||
}; | ||
export default defineComponent({ | ||
name: "RejectedItemsModal", | ||
components: { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonNote, | ||
IonTitle, | ||
IonToolbar | ||
}, | ||
computed: { | ||
...mapGetters({ | ||
usedReasons: 'rejection/getUsedReasons', | ||
}) | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss({ dismissed: true }); | ||
}, | ||
}); | ||
</script> | ||
}, | ||
setup() { | ||
const productIdentificationStore = useProductIdentificationStore(); | ||
let productIdentificationPref = computed(() => productIdentificationStore.getProductIdentificationPref) | ||
return { | ||
closeOutline, | ||
pricetag, | ||
productIdentificationPref, | ||
productIdentificationStore, | ||
getProductIdentificationValue, | ||
translate | ||
}; | ||
}, | ||
}); | ||
</script> | ||
|
Oops, something went wrong.