From b4a3ec0b535794956dac3bd38641a9e2885fcb3e Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:39:30 -0400 Subject: [PATCH] Bugfix/#692 context menu butons (#700) * fix: Context menu, change text by button. * fix default action window as New Record. * Add default action to run switch new and undo. * Add colot button to undo action. * change to plain and warning undo button. * modifit contextmenu mobile * remove console * minimal change * validate is LIstrecord * modifit contextmenu mobile (#9) * modifit contextmenu mobile * remove console * minimal change * validate is LIstrecord Co-authored-by: Elsio Sanchez * add description * Bugfix/#692 context menu butons (#10) * modifit contextmenu mobile * remove console * minimal change * validate is LIstrecord * add description Co-authored-by: Elsio Sanchez * add icon * Bugfix/#692 context menu butons (#11) * modifit contextmenu mobile * remove console * minimal change * validate is LIstrecord * add description * add icon Co-authored-by: Elsio Sanchez * change size the label * Bugfix/#692 context menu butons (#12) * modifit contextmenu mobile * remove console * minimal change * validate is LIstrecord * add description * add icon * change size the label Co-authored-by: Elsio Sanchez * changa size label * add style reference * add translations * add icon default * fixed position Co-authored-by: EdwinBetanc0urt Co-authored-by: Elsio Sanchez --- .../ContextMenu/contextMenuDesktop.vue | 30 +- .../ADempiere/ContextMenu/contextMenuMixin.js | 40 +- .../ContextMenu/contextMenuMobile.vue | 393 ++++++++++++------ .../ADempiere/ContextMenu/index.vue | 9 +- .../RightPanel/index.vue} | 31 +- src/lang/ADempiere/en.js | 1 + src/lang/ADempiere/es.js | 1 + src/store/modules/ADempiere/contextMenu.js | 4 + src/views/ADempiere/Window/index.vue | 3 +- 9 files changed, 343 insertions(+), 169 deletions(-) rename src/components/{RightPanel/menu.vue => ADempiere/RightPanel/index.vue} (82%) diff --git a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue index c5d1f78d..dfc655cc 100644 --- a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue +++ b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue @@ -3,7 +3,6 @@ - - - - - - - - - {{ $t('components.contextMenuRelations') }} - - @@ -55,6 +56,10 @@ export default { isInsertRecord: { type: Boolean, default: undefined + }, + isListRecord: { + type: Boolean, + default: false } }, computed: { @@ -110,9 +115,9 @@ export default { .container-submenu-mobile { position: absolute; height: 39px !important; - width: 55px !important; - right: 0; + right: 0%; top: 0; + display: flex; } .container-submenu { diff --git a/src/components/RightPanel/menu.vue b/src/components/ADempiere/RightPanel/index.vue similarity index 82% rename from src/components/RightPanel/menu.vue rename to src/components/ADempiere/RightPanel/index.vue index 79fce0b1..d7c4c349 100644 --- a/src/components/RightPanel/menu.vue +++ b/src/components/ADempiere/RightPanel/index.vue @@ -1,12 +1,21 @@