FIX: muted was not working in topic timeline (#9021)
This commit is contained in:
@@ -382,21 +382,15 @@ createWidget("timeline-footer-controls", {
|
||||
controls.push(
|
||||
new ComponentConnector(
|
||||
this,
|
||||
"topic-notifications-options",
|
||||
"topic-notifications-button",
|
||||
{
|
||||
value: notificationLevel,
|
||||
notificationLevel,
|
||||
topic,
|
||||
options: {
|
||||
showFullTitle: false,
|
||||
placement: "bottom-end"
|
||||
},
|
||||
onChange: newNotificationLevel => {
|
||||
if (newNotificationLevel !== notificationLevel) {
|
||||
topic.details.updateNotifications(newNotificationLevel);
|
||||
}
|
||||
}
|
||||
showFullTitle: false,
|
||||
appendReason: false,
|
||||
placement: "bottom-end"
|
||||
},
|
||||
["value"]
|
||||
["notificationLevel"]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ export default Component.extend({
|
||||
classNames: ["topic-notifications-button"],
|
||||
appendReason: true,
|
||||
showFullTitle: true,
|
||||
placement: "bottom-start",
|
||||
|
||||
didInsertElement() {
|
||||
this._super(...arguments);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
onChange=(action "changeTopicNotificationLevel")
|
||||
options=(hash
|
||||
showFullTitle=showFullTitle
|
||||
placement=placement
|
||||
)
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user