Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added:Empty State to Export Packed Orders Page(#270) #377

Merged
merged 4 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/images/PackedOrderEmptyState.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
"The import orders has been uploaded successfully": "The import orders has been uploaded successfully",
"The timezone you select is used to ensure automations you schedule are always accurate to the time you select.": "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.",
"There are no packed shipments. Failed to ship order.": "There are no packed shipments. Failed to ship order.",
"There are no packed orders at this facility": "There are no packed orders at this facility",
"There are no saved CSV mappings to show. Create a new mapping from a file upload screen": "There are no saved CSV mappings to show. Create a new mapping from a file upload screen",
"This CSV mapping has been deleted.": "This CSV mapping has been deleted.",
"This CSV mapping has been saved.": "This CSV mapping has been saved.",
Expand Down
1 change: 1 addition & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
"The import orders has been uploaded successfully": "Los pedidos de importación se han cargado exitosamente",
"The timezone you select is used to ensure automations you schedule are always accurate to the time you select.": "La zona horaria que seleccione se utiliza para garantizar que las automatizaciones que programe siempre sean precisas para la hora que seleccione.",
"There are no packed shipments. Failed to ship order.": "No hay envíos empacados. No se pudo enviar el pedido.",
"There are no packed orders at this facility": "There are no packed orders at this facility",
"There are no saved CSV mappings to show. Create a new mapping from a file upload screen": "No hay asignaciones CSV guardadas para mostrar. Crear una nueva asignación desde una pantalla de carga de archivos",
"This CSV mapping has been deleted.": "Esta asignación CSV ha sido eliminada.",
"This CSV mapping has been saved.": "Esta asignación CSV se ha guardado.",
Expand Down
16 changes: 10 additions & 6 deletions src/views/DownloadPackedOrders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</ion-header>

<ion-content>
<main>
<main v-if="content.length > 0">
ymaheshwari1 marked this conversation as resolved.
Show resolved Hide resolved
<ion-list>
<ion-list-header>{{ translate("Saved mappings") }}</ion-list-header>
<div>
<ion-chip :disabled="!content.length" :outline=true @click="addFieldMapping()">
<ion-chip :outline=true @click="addFieldMapping()">
<ion-icon :icon="addOutline" />
<ion-label>{{ translate("New mapping") }}</ion-label>
</ion-chip>
<ion-chip :disabled="!content.length" v-for="(mapping, index) in fieldMappings('EXPORD') ?? []" :key="index" @click="mapFields(mapping)" :outline=true>
<ion-chip v-for="(mapping, index) in fieldMappings('EXPORD') ?? []" :key="index" @click="mapFields(mapping)" :outline=true>
{{ mapping.name }}
</ion-chip>
</div>
Expand Down Expand Up @@ -59,8 +59,12 @@
<ion-label>{{ fields[field] ? fields[field].label : field }}</ion-label>
</ion-item>
</ion-list>
</main>

</main>
<main class="empty-state" v-else>
<img src="../assets/images/PackedOrderEmptyState.png" />
<p>{{ translate("There are no packed orders at this facility") }}</p>
</main>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
<ion-fab-button @click="download" :disabled="!content.length">
<ion-icon :icon="cloudDownloadOutline" />
Expand Down Expand Up @@ -113,7 +117,7 @@ export default defineComponent({
selectedData: {} as any,
fields: process.env["VUE_APP_MAPPING_EXPORD"] ? JSON.parse(process.env["VUE_APP_MAPPING_EXPORD"]) : {},
customFields: {} as any,
selectedFieldMappings: {} as any
selectedFieldMappings: {} as any,
}
},
computed: {
Expand Down
Loading