From 03eb8949c62126096f4d80b589fc906fea926e98 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 11 May 2021 17:41:58 -0400 Subject: [PATCH] validate when displaying modal in mobile mode (#831) * validate mode movil * minimal changes * hide Tabs Children * Undo Commit Co-authored-by: elsiosanchez --- src/components/ADempiere/Dialog/embedded.vue | 6 ++++++ src/components/ADempiere/Field/index.vue | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/ADempiere/Dialog/embedded.vue b/src/components/ADempiere/Dialog/embedded.vue index a2447da5..9130b45a 100644 --- a/src/components/ADempiere/Dialog/embedded.vue +++ b/src/components/ADempiere/Dialog/embedded.vue @@ -91,6 +91,9 @@ export default { return this.$store.getters.getAttributeEmbedded }, isVisibleDialog() { + if (this.isMobile) { + return false + } return this.$store.state['process/index'].isVisibleDialog }, modalMetadata() { @@ -103,6 +106,9 @@ export default { return this.$store.getters.getDataRecordAndSelection(this.containerUuid) }, showRecordAccess() { + if (this.isMobile) { + return false + } return this.$store.getters.getShowRecordAccess } }, diff --git a/src/components/ADempiere/Field/index.vue b/src/components/ADempiere/Field/index.vue index 2b36162c..8c1494cf 100644 --- a/src/components/ADempiere/Field/index.vue +++ b/src/components/ADempiere/Field/index.vue @@ -655,7 +655,16 @@ export default { }, created() { this.timeOut = setTimeout(() => { - this.showPopoverPath = true + if (this.isMobile && this.optionColumnName === this.field.columnName) { + this.$store.commit('changeShowRigthPanel', true) + this.$store.dispatch('setOptionField', { + fieldAttributes: this.fieldAttributes, + name: this.$route.query.typeAction, + valueField: this.valueField + }) + } else { + this.showPopoverPath = true + } }, 2000) // assined field with prop this.field = this.metadataField