mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Use a connector class to determine wheteher to render presence
This commit is contained in:
parent
b7ac33464f
commit
846e573766
3 changed files with 7 additions and 4 deletions
|
@ -1,3 +1 @@
|
||||||
{{#if siteSettings.presence_enabled}}
|
|
||||||
{{composer-presence-display}}
|
{{composer-presence-display}}
|
||||||
{{/if}}
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
export default {
|
||||||
|
shouldRender(_, ctx) {
|
||||||
|
return ctx.siteSettings.presence_enabled;
|
||||||
|
}
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue