Skip to content

Commit

Permalink
Fix: Support to display help field (adempiere#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsiosanchez authored Mar 8, 2023
1 parent 84c562b commit 61452ea
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/layout/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ export default {
return uri
},
fieldPanel() {
if (this.$route.meta.type === 'browser') return this.$store.getters.getStoredBrowser(this.$route.meta.uuid).fieldsList.filter(field => field.isMandatory || field.isShowedFromUser)
if (this.$route.meta.type === 'report') return this.$store.getters.getStoredReport(this.$route.meta.uuid).fieldsList.filter(field => field.isMandatory || field.isShowedFromUser)
if (this.$route.meta.type === 'window') {
const { currentTab } = this.$store.getters.getContainerInfo
if (!this.isEmptyValue(currentTab)) {
const {
parentUuid,
containerUuid
} = currentTab
return this.$store.getters.getStoredFieldsFromTab(parentUuid, containerUuid).filter(field => field.isMandatory || field.isShowedFromUser)
}
return []
}
return this.$store.getters.getStoredFieldsFromProcess(this.$route.meta.uuid).filter(field => field.isMandatory || field.isShowedFromUser)
},
fieldTab() {
Expand Down Expand Up @@ -233,8 +246,20 @@ export default {
}
})
break
case 'browser':
field = this.fieldPanel.map(steps => {
return {
element: '#' + steps.columnName,
popover: {
title: steps.name,
description: steps.description,
position: 'top'
}
}
})
break
case 'window':
field = this.fieldTab.map(steps => {
field = this.fieldPanel.map(steps => {
return {
element: '#' + steps.columnName,
popover: {
Expand Down

0 comments on commit 61452ea

Please sign in to comment.