From 5a2a24733927ee6a5c28afb432dda52ed7de0c35 Mon Sep 17 00:00:00 2001 From: Erik Verheul Date: Thu, 2 May 2024 21:58:14 +0200 Subject: [PATCH] Skip showing the requirement area in the event bar when not in professional mode --- src/components/mixins/generic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/mixins/generic.js b/src/components/mixins/generic.js index ce8bc942..75270d6d 100644 --- a/src/components/mixins/generic.js +++ b/src/components/mixins/generic.js @@ -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.`