Skip to content

Commit 0eaa40f

Browse files
authored
Merge pull request #8 from pdchaudhary/patch-2
[fixed] In home document Quick Translate is not visible in menu.
2 parents c7589e4 + 77af429 commit 0eaa40f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/QuickTranslateBundle/Resources/public/js/pimcore

src/QuickTranslateBundle/Resources/public/js/pimcore/startup.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ pimcore.plugin.asiosoQuickTranslateBundle = Class.create(pimcore.plugin.admin, {
5959
if (document.data.locked) {
6060
menuParent = document.toolbar.items.items[6].btnInnerEl.component.menu.items.items[0].menu;
6161
} else {
62-
menuParent = document.toolbar.items.items[9].btnInnerEl.component.menu.items.items[0].menu;
62+
if(document.data.id == 1 ){
63+
menuParent = document.toolbar.items.items[7].btnInnerEl.component.menu.items.items[0].menu;
64+
}else{
65+
menuParent = document.toolbar.items.items[9].btnInnerEl.component.menu.items.items[0].menu;
66+
}
6367
}
6468

6569
menuParent.add({

0 commit comments

Comments
 (0)