From 0d00821c1f862b550bbd69d18bd8d889dcdbc055 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Thu, 10 Oct 2024 12:50:12 +0530 Subject: [PATCH] Improved: permission checking logic using the help of Actions (bopis-443) --- src/components/DxpProductIdentifier.vue | 4 ++-- src/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DxpProductIdentifier.vue b/src/components/DxpProductIdentifier.vue index eb1c8b9..3711ec3 100644 --- a/src/components/DxpProductIdentifier.vue +++ b/src/components/DxpProductIdentifier.vue @@ -11,12 +11,12 @@ {{ 'Choosing a product identifier allows you to view products with your preferred identifiers.' }} - + {{ identification }} - + {{ identification }} {{ "None" }} diff --git a/src/index.ts b/src/index.ts index 6e814c8..dfdae45 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,6 +109,7 @@ export let dxpComponents = { loginContext.getConfig = options.getConfig loginContext.initialise = options.initialise + appContext.Actions = options.Actions appContext.hasPermission = options.hasPermission // set a default locale in the state