-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented: support to display archived orderRoutings and added empt…
…y state for the same
- Loading branch information
1 parent
baa8658
commit ed773e2
Showing
3 changed files
with
80 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<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>{{ "Archived Routes" }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item v-for="routing in props.archivedRoutings" :key="routing.orderRoutingId"> | ||
<ion-label>{{ routing.routingName }}</ion-label> | ||
<ion-button slot="end" fill="outline" color="medium">{{ "Unarchive" }}</ion-button> | ||
</ion-item> | ||
</ion-list> | ||
<p class="empty-state" v-if="!(props as any).archivedRoutings.length"> | ||
{{ "No archived routings" }} | ||
</p> | ||
</ion-content> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { | ||
IonButton, | ||
IonButtons, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonList, | ||
IonTitle, | ||
IonToolbar, | ||
modalController, | ||
} from "@ionic/vue"; | ||
import { closeOutline } from "ionicons/icons"; | ||
import { defineProps } from "vue"; | ||
const props = defineProps({ | ||
archivedRoutings: { | ||
required: true | ||
} | ||
}) | ||
function closeModal() { | ||
modalController.dismiss({ dismissed: true }); | ||
} | ||
</script> |
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