FIX: Sidebar preferences link shown when navigation menu is legacy (#19568)
This commit is contained in:
parent
f6174587ef
commit
954b39f5ec
|
@ -61,7 +61,7 @@
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{{#if (not (eq @siteSettings.navigation_menu "legacy"))}}
|
{{#if (not (eq this.siteSettings.navigation_menu "legacy"))}}
|
||||||
<li class="indent nav-sidebar">
|
<li class="indent nav-sidebar">
|
||||||
<LinkTo @route="preferences.sidebar">
|
<LinkTo @route="preferences.sidebar">
|
||||||
{{i18n "user.preferences_nav.sidebar"}}
|
{{i18n "user.preferences_nav.sidebar"}}
|
||||||
|
|
|
@ -52,6 +52,14 @@ acceptance("User Preferences - Sidebar", function (needs) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("sidebar preferences link is not shown when navigation menu is set to legacy", async function (assert) {
|
||||||
|
this.siteSettings.navigation_menu = "legacy";
|
||||||
|
|
||||||
|
await visit("/u/eviltrout/preferences");
|
||||||
|
|
||||||
|
assert.dom(".nav-sidebar").doesNotExist();
|
||||||
|
});
|
||||||
|
|
||||||
test("user encountering error when adding categories to sidebar", async function (assert) {
|
test("user encountering error when adding categories to sidebar", async function (assert) {
|
||||||
updateCurrentUser({ sidebar_category_ids: [6] });
|
updateCurrentUser({ sidebar_category_ids: [6] });
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue