diff --git a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue
index 4822357a..dbed7bbc 100644
--- a/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue
+++ b/src/components/ADempiere/ContextMenu/contextMenuDesktop.vue
@@ -12,7 +12,7 @@
@shortkey.native="actionContextMenu"
>
-
-
+
{{ child.name }}
-
+
{{ action.name }}
@@ -53,7 +65,9 @@
index="xlsx"
@click.native="exporBrowser('xlsx')"
>
- {{ $t('components.contextMennuWindowReport') }}
+
+ {{ $t('components.contextMennuWindowReport') }}
+
{{ format }}
@@ -87,17 +101,25 @@
{{ $t('components.contextMenuActions') }}
-
diff --git a/src/components/ADempiere/ContextMenu/contextMenuMixin.js b/src/components/ADempiere/ContextMenu/contextMenuMixin.js
index 1578ebb3..3975f1be 100644
--- a/src/components/ADempiere/ContextMenu/contextMenuMixin.js
+++ b/src/components/ADempiere/ContextMenu/contextMenuMixin.js
@@ -54,7 +54,7 @@ export const contextMixin = {
downloads: this.$store.getters.getProcessResult.url,
metadataMenu: {},
recordUuid: this.$route.query.action,
- isReferencesLoaded: false,
+ isLoadedReferences: false,
exportDefault: 'xls',
ROUTES
}
@@ -264,31 +264,30 @@ export const contextMixin = {
},
getReferences() {
if (this.isReferecesContent) {
- var references = this.getterReferences
+ const references = this.getterReferences
if (references && references.length) {
this.references = references
- this.isReferencesLoaded = true
+ this.isLoadedReferences = true
} else {
+ this.isLoadedReferences = false
this.$store.dispatch('getReferencesListFromServer', {
parentUuid: this.parentUuid,
containerUuid: this.containerUuid,
recordUuid: this.recordUuid
})
.then(() => {
- this.references = this.$store.getters.getReferencesList(this.parentUuid, this.recordUuid)
- if (this.references.referencesList.length) {
- this.isReferencesLoaded = true
- } else {
- this.isReferencesLoaded = false
- }
+ this.references = this.getterReferences
})
.catch(error => {
- console.warn('References Load Error ' + error.code + ': ' + error.message)
+ console.warn(`References Load Error ${error.code}: ${error.message}.`)
+ })
+ .finally(() => {
+ this.isLoadedReferences = true
})
}
} else {
this.references = []
- this.isReferencesLoaded = false
+ this.isLoadedReferences = false
}
},
typeFormat(key) {
diff --git a/src/components/ADempiere/ContextMenu/contextMenuMobile.vue b/src/components/ADempiere/ContextMenu/contextMenuMobile.vue
index b1769d6f..13e442ee 100644
--- a/src/components/ADempiere/ContextMenu/contextMenuMobile.vue
+++ b/src/components/ADempiere/ContextMenu/contextMenuMobile.vue
@@ -30,15 +30,31 @@
-
+
{{ action.name }}
-
+
{{ child.name }}
-
+
{{ action.name }}
@@ -57,17 +73,25 @@
-