From 19aa2328a14d5a3f74af232ecbc9a630e90b8ea8 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 30 Oct 2023 15:31:36 +0530 Subject: [PATCH] Improved: changed page name from Pre-order to Pre-sell --- src/authorization/Rules.ts | 2 +- src/components/Menu.vue | 6 +++--- src/locales/en.json | 2 +- src/router/index.ts | 10 +++++----- src/views/{PreOrder.vue => PreSell.vue} | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) rename src/views/{PreOrder.vue => PreSell.vue} (99%) diff --git a/src/authorization/Rules.ts b/src/authorization/Rules.ts index 64e02dec..640e74db 100644 --- a/src/authorization/Rules.ts +++ b/src/authorization/Rules.ts @@ -4,7 +4,7 @@ export default { "APP_FULFILLMENT_VIEW": "", "APP_INVENTORY_VIEW": "", "APP_PRODUCT_VIEW": "", - "APP_PREORDER_VIEW": "", + "APP_PRESELL_VIEW": "", "APP_ORDERS_VIEW": "", "APP_JOB_DETAILS_VIEW": "", "APP_INITIAL_LOAD_VIEW": "", diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 80434db8..69dbacd6 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -162,13 +162,13 @@ export default defineComponent({ } }, { - title: "Pre-order", - url: "/pre-order", + title: "Pre-sell", + url: "/pre-sell", iosIcon: calendarNumberOutline, mdIcon: calendarNumberOutline, dependsOnBaseURL: false, meta: { - permissionId: "APP_PREORDER_VIEW" + permissionId: "APP_PRESELL_VIEW" } }, { diff --git a/src/locales/en.json b/src/locales/en.json index 1ef1ed8d..8ecef628 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -162,10 +162,10 @@ "Pinned": "Pinned", "Pinned jobs": "Pinned jobs", "Pipeline": "Pipeline", - "Pre-order": "Pre-order", "Pre-Order": "Pre-Order", "Pre-order parking": "Pre-order parking", "Pre-orders": "Pre-orders", + "Pre-sell": "Pre-sell", "Pre-sell catalog": "Pre-sell catalog", "Pre-sell on Shopify": "Pre-sell on Shopify", "Process Uploads": "Process Uploads", diff --git a/src/router/index.ts b/src/router/index.ts index 5c359f08..1b6a36fb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -5,7 +5,7 @@ import Fulfillment from '@/views/Fulfillment.vue'; import Inventory from '@/views/Inventory.vue' import Product from '@/views/Product.vue' import Pipeline from '@/views/Pipeline.vue' -import PreOrder from '@/views/PreOrder.vue' +import PreSell from '@/views/PreSell.vue' import Orders from '@/views/Orders.vue' import JobDetails from '@/views/JobDetails.vue' import InitialLoad from '@/views/InitialLoad.vue' @@ -82,12 +82,12 @@ const routes: Array = [ } }, { - path: '/pre-order', - name: 'PreOrder', - component: PreOrder, + path: '/pre-sell', + name: 'PreSell', + component: PreSell, beforeEnter: authGuard, meta: { - permissionId: "APP_PREORDER_VIEW" + permissionId: "APP_PRESELL_VIEW" } }, { diff --git a/src/views/PreOrder.vue b/src/views/PreSell.vue similarity index 99% rename from src/views/PreOrder.vue rename to src/views/PreSell.vue index 3f48525d..dcd5cac3 100644 --- a/src/views/PreOrder.vue +++ b/src/views/PreSell.vue @@ -3,7 +3,7 @@ - {{ $t("Pre-order") }} + {{ $t("Pre-sell") }} @@ -190,7 +190,7 @@ import { Actions, hasPermission } from '@/authorization' import { openOutline } from 'ionicons/icons' export default defineComponent({ - name: 'PreOrder', + name: 'PreSell', components: { IonButton, IonCard,