mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:43:19 +08:00
UX: make sidebar title static (#25040)
* UX: make sidebar title static * tests
This commit is contained in:
parent
3a20718526
commit
32c438387b
|
@ -7,9 +7,7 @@ export default createWidget("sidebar-toggle", {
|
||||||
const attrs = this.attrs;
|
const attrs = this.attrs;
|
||||||
return [
|
return [
|
||||||
this.attach("button", {
|
this.attach("button", {
|
||||||
title: attrs.showSidebar
|
title: "sidebar.title",
|
||||||
? "sidebar.hide_sidebar"
|
|
||||||
: "sidebar.show_sidebar",
|
|
||||||
icon: "bars",
|
icon: "bars",
|
||||||
action: this.site.narrowDesktopView
|
action: this.site.narrowDesktopView
|
||||||
? "toggleHamburger"
|
? "toggleHamburger"
|
||||||
|
|
|
@ -218,7 +218,7 @@ acceptance(
|
||||||
|
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
query(".btn-sidebar-toggle").title,
|
query(".btn-sidebar-toggle").title,
|
||||||
I18n.t("sidebar.hide_sidebar"),
|
I18n.t("sidebar.title"),
|
||||||
"has the right title attribute when sidebar is expanded"
|
"has the right title attribute when sidebar is expanded"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ acceptance(
|
||||||
|
|
||||||
assert.strictEqual(
|
assert.strictEqual(
|
||||||
query(".btn-sidebar-toggle").title,
|
query(".btn-sidebar-toggle").title,
|
||||||
I18n.t("sidebar.show_sidebar"),
|
I18n.t("sidebar.title"),
|
||||||
"has the right title attribute when sidebar is collapsed"
|
"has the right title attribute when sidebar is collapsed"
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -4475,8 +4475,7 @@ en:
|
||||||
redirect_after_success: "Second factor authentication is successful. Redirecting to the previous page…"
|
redirect_after_success: "Second factor authentication is successful. Redirecting to the previous page…"
|
||||||
|
|
||||||
sidebar:
|
sidebar:
|
||||||
show_sidebar: "Show sidebar"
|
title: "Sidebar"
|
||||||
hide_sidebar: "Hide sidebar"
|
|
||||||
unread_count:
|
unread_count:
|
||||||
one: "%{count} unread"
|
one: "%{count} unread"
|
||||||
other: "%{count} unread"
|
other: "%{count} unread"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user