mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:41:24 +08:00
Use a connector class to determine wheteher to render presence
This commit is contained in:
@ -1,3 +1 @@
|
||||
{{#if siteSettings.presence_enabled}}
|
||||
{{composer-presence-display}}
|
||||
{{/if}}
|
||||
{{composer-presence-display}}
|
||||
|
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
shouldRender(_, ctx) {
|
||||
return ctx.siteSettings.presence_enabled;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user