Use a connector class to determine wheteher to render presence
This commit is contained in:
parent
b7ac33464f
commit
846e573766
|
@ -18,4 +18,4 @@ export default Ember.Component.extend({
|
|||
return length > 0;
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue