Skip to content

Commit

Permalink
Skip showing the requirement area in the event bar when not in profes…
Browse files Browse the repository at this point in the history
…sional mode
  • Loading branch information
ErikVerheul committed May 2, 2024
1 parent c62b2e3 commit 5a2a247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mixins/generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const utilities = {
if (selNodes.length === 1) {
evt = `${itemType} '${lastSelectedNodeTitle}' is selected.`
if (this.getLastSelectedNode.level === LEVEL.PRODUCT) evt += ` Your assigned ${printRoles(this.getMyProductsRoles[this.getLastSelectedNode._id])}`
if (this.getLastSelectedNode.data.reqarea) evt += ` This ${itemType} belongs to requirement area '${store.state.reqAreaMapper[this.getLastSelectedNode.data.reqarea]}'`
if (store.state.userData.myOptions.proUser === 'true' && this.getLastSelectedNode.data.reqarea) evt += ` This ${itemType} belongs to requirement area '${store.state.reqAreaMapper[this.getLastSelectedNode.data.reqarea]}'`
} else {
const multiNodesTitle = `${lastSelectedNodeTitle}' + ${(selNodes.length - 1)} other item(s)`
evt = `${itemType} ${multiNodesTitle} are selected.`
Expand Down

0 comments on commit 5a2a247

Please sign in to comment.