Skip to content

Commit

Permalink
Updated: Page Name in Side Menu Navigation from Catalog to Audit(hotw…
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmukhdutt committed Dec 26, 2023
1 parent 79652c3 commit dd4b84e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
import { computed, defineComponent} from "vue"
import { mapGetters } from "vuex";
import { albums ,shirt, pricetags, settings } from "ionicons/icons";
import { albums ,shirt, pricetags, settings, flashlightOutline } from "ionicons/icons";
import { useStore } from "@/store";
import { useRouter } from "vue-router";
import { hasPermission } from "@/authorization";
Expand Down Expand Up @@ -94,11 +94,11 @@ export default defineComponent({
}
},
{
title: "Catalog",
url: "/catalog",
childRoutes: ["/catalog-product-details/"],
iosIcon: albums,
mdIcon: albums,
title: "Audit",
url: "/audit",
childRoutes: ["/audit-product-details/"],
iosIcon: flashlightOutline,
mdIcon: flashlightOutline,
meta: {
permissionId: "APP_CATALOG_VIEW"
}
Expand Down
16 changes: 8 additions & 8 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createRouter, createWebHistory } from '@ionic/vue-router';
import { RouteRecordRaw } from 'vue-router';
import Products from '../views/products.vue'
import ProductDetails from '../views/product-details.vue'
import CatalogProductDetails from '../views/catalog-product-details.vue'
import AuditProductDetails from '../views/audit-product-details.vue'
import Orders from '../views/orders.vue'
import Catalog from '../views/catalog.vue'
import Audit from '../views/audit.vue'
import Settings from '../views/settings.vue'
import store from '@/store';
import { DxpLogin, useAuthStore } from '@hotwax/dxp-components';
Expand Down Expand Up @@ -79,18 +79,18 @@ const routes: Array<RouteRecordRaw> = [
}
},
{
path: '/catalog',
name: 'Catalog',
component: Catalog,
path: '/audit',
name: 'Audit',
component: Audit,
beforeEnter: authGuard,
meta: {
permissionId: "APP_CATALOG_VIEW"
}
},
{
path: '/catalog-product-details/:productId/',
name: 'Catalog-product-details',
component: CatalogProductDetails,
path: '/audit-product-details/:productId/',
name: 'Audit-product-details',
component: AuditProductDetails,
beforeEnter: authGuard,
meta: {
permissionId: "APP_CTLG_PRDT_DTLS_VIEW"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ion-header :translucent="true">
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button default-href="/catalog"></ion-back-button>
<ion-back-button default-href="/audit"></ion-back-button>
</ion-buttons>
<ion-title>{{ $t("Product audit") }}</ion-title>
</ion-toolbar>
Expand Down Expand Up @@ -414,7 +414,7 @@ import { Plugins } from "@capacitor/core";
import { Actions, hasPermission } from '@/authorization'
export default defineComponent({
name: "catalog-product-details",
name: "audit-product-details",
components: {
ShopifyImg,
IonButtons,
Expand Down
6 changes: 3 additions & 3 deletions src/views/catalog.vue → src/views/audit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ion-buttons slot="start">
<ion-menu-button />
</ion-buttons>
<ion-title slot="start">{{ $t("Catalog") }}</ion-title>
<ion-title slot="start">{{ $t("Audit") }}</ion-title>
</ion-toolbar>
</ion-header>

Expand Down Expand Up @@ -116,7 +116,7 @@ import { JobService } from '@/services/JobService';
import { hasError } from '@/utils';
export default defineComponent({
name: 'Catalog',
name: 'Audit',
components: {
ShopifyImg,
IonButtons,
Expand Down Expand Up @@ -211,7 +211,7 @@ export default defineComponent({
this.getCatalogProducts()
},
viewProduct(product: any) {
this.router.push({ path: `/catalog-product-details/${product.groupId}`, query: { variantId: product.productId } });
this.router.push({ path: `/audit-product-details/${product.groupId}`, query: { variantId: product.productId } });
},
async preparePreordBckordComputationJob() {
try {
Expand Down

0 comments on commit dd4b84e

Please sign in to comment.