From ad57b8bd27815f4d36b6455f204200a573a76fdf Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Thu, 6 May 2021 10:53:48 -0400 Subject: [PATCH] add record access to the route (#816) Co-authored-by: elsiosanchez --- .../ContextMenu/contextMenuDesktop.vue | 7 ++++ src/components/ADempiere/Dialog/embedded.vue | 15 ++++++- .../contextMenuField/preference/index.vue | 40 ++++++++++--------- .../ADempiere/RecordAccess/recordAccess.js | 7 ++++ src/store/modules/ADempiere/contextMenu.js | 4 +- .../ADempiere/Window/windowLogicComponent.js | 8 ++++ 6 files changed, 60 insertions(+), 21 deletions(-) diff --git a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue index d1ded097..5ebb52be 100644 --- a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue +++ b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue @@ -296,6 +296,13 @@ export default { this.$store.commit('changeShowRigthPanel', true) this.$store.commit('setRecordAccess', true) this.$store.commit('attributeEmbedded', action) + this.$router.push({ + name: this.$route.name, + query: { + ...this.$route.query, + typeAction: this.$store.getters.getAttributeEmbedded.action + } + }, () => {}) this.runAction(action) } else { this.runAction(action) diff --git a/src/components/ADempiere/Dialog/embedded.vue b/src/components/ADempiere/Dialog/embedded.vue index 13398e7d..a2447da5 100644 --- a/src/components/ADempiere/Dialog/embedded.vue +++ b/src/components/ADempiere/Dialog/embedded.vue @@ -17,7 +17,7 @@ -->