DEV: Remove decoration for legacy hamburger menu (#160)
The `legacy` option has been removed from the `navigation_menu` site setting, so we can remove all the logic that's related to the `legacy` option from this plugin. Internal topic: t/113137.
This commit is contained in:
parent
30e32fa59a
commit
1d110f4b60
|
@ -46,22 +46,12 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
withPluginApi("1.2.0", (api) => {
|
withPluginApi("1.2.0", (api) => {
|
||||||
if (siteSettings.navigation_menu !== "legacy") {
|
api.addCommunitySectionLink({
|
||||||
api.addCommunitySectionLink({
|
name: "docs",
|
||||||
name: "docs",
|
route: "docs.index",
|
||||||
route: "docs.index",
|
title: I18n.t("sidebar.docs_link_title"),
|
||||||
title: I18n.t("sidebar.docs_link_title"),
|
text: I18n.t("sidebar.docs_link_text"),
|
||||||
text: I18n.t("sidebar.docs_link_text"),
|
});
|
||||||
});
|
|
||||||
} else {
|
|
||||||
api.decorateWidget("hamburger-menu:generalLinks", () => {
|
|
||||||
return {
|
|
||||||
route: "docs",
|
|
||||||
label: "docs.title",
|
|
||||||
className: "docs-link",
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue