Skip to content

Commit

Permalink
Hiding header breadcrumb of the node navigation #1681
Browse files Browse the repository at this point in the history
Closes #1680.
  • Loading branch information
kecso committed Apr 22, 2019
1 parent d370a84 commit ab3260e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/componentsGenericUIDefaults.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"GenericUIProjectNavigatorController": {
"disableProjectActions": false,
"disableNodeMenu": false,
"rootMenuClass": "gme-root",
"rootDisplayName": "GME",
"projectMenuClass": "",
Expand Down
3 changes: 2 additions & 1 deletion src/client/js/Panels/Header/ProjectNavigatorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ define([
}
}

if (typeof nodeId !== 'string' || !this.gmeClient.getNode(nodeId)) {
if (typeof nodeId !== 'string' || !this.gmeClient.getNode(nodeId) || self.config.disableNodeMenu === true) {
this.$scope.navigator.items.length = this.navIdBranch + 1;
return;
}
Expand Down Expand Up @@ -1318,6 +1318,7 @@ define([
ProjectNavigatorController.getDefaultConfig = function () {
return {
disableProjectActions: false,
disableNodeMenu: false,
rootMenuClass: 'gme-root',
rootDisplayName: 'GME',
projectMenuClass: '',
Expand Down

0 comments on commit ab3260e

Please sign in to comment.