mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 10:24:39 +08:00
UX: Muted style for entire chat section link when muted (#18852)
This commit is contained in:

committed by
GitHub

parent
391a456443
commit
d446ad3290
@ -61,6 +61,12 @@ export default {
|
||||
return dasherize(slugifyChannel(this.title));
|
||||
}
|
||||
|
||||
get classNames() {
|
||||
return this.channel.current_user_membership.muted
|
||||
? "sidebar-section-link--muted"
|
||||
: "";
|
||||
}
|
||||
|
||||
get route() {
|
||||
return "chat.channel";
|
||||
}
|
||||
@ -108,12 +114,6 @@ export default {
|
||||
? "urgent"
|
||||
: "unread";
|
||||
}
|
||||
|
||||
get contentCSSClass() {
|
||||
return this.channel.current_user_membership.muted
|
||||
? "sidebar-section-link-content-muted"
|
||||
: "";
|
||||
}
|
||||
};
|
||||
|
||||
const SidebarChatChannelsSection = class extends BaseCustomSidebarSection {
|
||||
@ -243,6 +243,12 @@ export default {
|
||||
return slugifyChannel(this.title);
|
||||
}
|
||||
|
||||
get classNames() {
|
||||
return this.channel.current_user_membership.muted
|
||||
? "sidebar-section-link--muted"
|
||||
: "";
|
||||
}
|
||||
|
||||
get route() {
|
||||
return "chat.channel";
|
||||
}
|
||||
@ -307,12 +313,6 @@ export default {
|
||||
return "";
|
||||
}
|
||||
|
||||
get contentCSSClass() {
|
||||
return this.channel.current_user_membership.muted
|
||||
? "sidebar-section-link-content-muted"
|
||||
: "";
|
||||
}
|
||||
|
||||
get suffixType() {
|
||||
return "icon";
|
||||
}
|
||||
|
Reference in New Issue
Block a user