mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
FIX: The service observer was using this
incorrectly
It was pointing at nothing due to context.
This commit is contained in:
parent
847c77de65
commit
d28808e866
@ -220,6 +220,7 @@ export default Component.extend({
|
||||
|
||||
@bind
|
||||
_handleLogsNoticeUpdate() {
|
||||
const { logsNoticeService } = this;
|
||||
const logNotice = Notice.create({
|
||||
text: htmlSafe(this.logsNoticeService.message),
|
||||
id: "alert-logs-notice",
|
||||
@ -227,13 +228,10 @@ export default Component.extend({
|
||||
dismissable: true,
|
||||
persistentDismiss: false,
|
||||
visibility() {
|
||||
return !this.logsNoticeService.hidden;
|
||||
return !logsNoticeService.hidden;
|
||||
},
|
||||
onDismiss() {
|
||||
this.logsNoticeService.setProperties({
|
||||
hidden: true,
|
||||
text: "",
|
||||
});
|
||||
logsNoticeService.set("text", "");
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user