mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 06:42:37 +08: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
|
@bind
|
||||||
_handleLogsNoticeUpdate() {
|
_handleLogsNoticeUpdate() {
|
||||||
|
const { logsNoticeService } = this;
|
||||||
const logNotice = Notice.create({
|
const logNotice = Notice.create({
|
||||||
text: htmlSafe(this.logsNoticeService.message),
|
text: htmlSafe(this.logsNoticeService.message),
|
||||||
id: "alert-logs-notice",
|
id: "alert-logs-notice",
|
||||||
@ -227,13 +228,10 @@ export default Component.extend({
|
|||||||
dismissable: true,
|
dismissable: true,
|
||||||
persistentDismiss: false,
|
persistentDismiss: false,
|
||||||
visibility() {
|
visibility() {
|
||||||
return !this.logsNoticeService.hidden;
|
return !logsNoticeService.hidden;
|
||||||
},
|
},
|
||||||
onDismiss() {
|
onDismiss() {
|
||||||
this.logsNoticeService.setProperties({
|
logsNoticeService.set("text", "");
|
||||||
hidden: true,
|
|
||||||
text: "",
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user