-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
Which Umbraco version are you using?
13.0.0+
Bug summary
When adding a new tree group to the translation section. You can no longer use the button "Create dictionary item"
Specifics
When clicking the "Create dictionary item" button it thorws this error in the console log.
Possibly unhandled rejection: {"errorMsg":"No tree menu url defined for node -1"}
From my limited understanding it seems that this line is the bandit in dictionary.list.controller.js:
var rootNode = appState.getTreeState("currentRootNode").root;
It seems to no be able find the correct node.
I couldn't start the Umbraco project locally, so I tried doing this "hacky" thing from my own controller:
var rootNode = appState.getTreeState("currentRootNode").root.children.find(item => item.name === "Settings").children.find(item => item.name === "Dictionary");
And this displays the menu again.
Steps to reproduce
- Create a new tree group. (Or install a package that adds a new tree group eg, Translation Manager or Auto Dictionaries.)
- Go to the translation section
- Click on the Dictionary folder
- Click on Create dictionary item button.
Expected result / actual result
Expects to still be able to use the button even when extra tree groups are added. The menu for creating a new dictionary item should display