diff --git a/src/components/ADempiere/ContextMenu/contextMenuMixin.js b/src/components/ADempiere/ContextMenu/contextMenuMixin.js index 3975f1be..81c59c5c 100644 --- a/src/components/ADempiere/ContextMenu/contextMenuMixin.js +++ b/src/components/ADempiere/ContextMenu/contextMenuMixin.js @@ -336,6 +336,7 @@ export const contextMixin = { return } + // TODO: Add store attribute to avoid making repeated requests if (this.panelType === 'window' && !this.isEmptyValue(this.$route.params.tableName)) { this.$store.dispatch('getPrivateAccessFromServer', { tableName: this.$route.params.tableName, @@ -447,12 +448,6 @@ export const contextMixin = { .catch(error => { console.warn(error) }) - if (this.panelType === 'process') { - // TODO: Verify use - this.$store.dispatch('deleteRecordContainer', { - viewUuid: this.$route - }) - } } else { this.showNotification({ type: 'warning', diff --git a/src/components/ADempiere/DataTable/index.vue b/src/components/ADempiere/DataTable/index.vue index b6c8afe2..2770c89a 100644 --- a/src/components/ADempiere/DataTable/index.vue +++ b/src/components/ADempiere/DataTable/index.vue @@ -4,8 +4,7 @@ { + this.$store.dispatch('setRecordSelection', { + parentUuid: this.parentUuid, + containerUuid: this.containerUuid, + panelType: this.panelType + }) + }) }, callOffNewRecord() { this.getterDataRecords.shift() @@ -1012,27 +982,6 @@ export default { this.$refs.headerSearchSelect && this.$refs.headerSearchSelect.focus() } }, - activeAdvancedQuery(value) { - this.isAdvancedQuery = value - if (value) { - this.$store.dispatch('setOldAction', this.$route.query.action) - this.$router.push({ - query: { - ...this.$route.query, - action: 'advancedQuery' - } - }) - } - if (!value) { - const oldAction = this.$store.getters.getOldAction - this.$router.push({ - query: { - ...this.$route.query, - action: oldAction - } - }) - } - }, getFieldDefinition(fieldDefinition, row) { let styleSheet = '' if (fieldDefinition && (fieldDefinition.id !== null || fieldDefinition.conditionsList.length)) { diff --git a/src/components/ADempiere/DataTable/menu/contextMenu.vue b/src/components/ADempiere/DataTable/menu/contextMenu.vue index 98b4a208..7c7b7710 100644 --- a/src/components/ADempiere/DataTable/menu/contextMenu.vue +++ b/src/components/ADempiere/DataTable/menu/contextMenu.vue @@ -12,7 +12,7 @@ > {{ $t('components.contextMennuWindowReport') }} -