FIX: use getter for showPoweredBy (#26419)

This commit is contained in:
Kris 2024-03-28 11:22:26 -04:00 committed by GitHub
parent a670d6d4af
commit 2d6051a5d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,10 @@ export default Controller.extend({
this.footer.showFooter = value;
},
get showPoweredBy() {
return this.showFooter && this.siteSettings.enable_powered_by_discourse;
},
@discourseComputed
canSignUp() {
return (
@ -59,11 +63,6 @@ export default Controller.extend({
return this.capabilities.isAppWebview || this.capabilities.isiOSPWA;
},
@discourseComputed
showPoweredBy() {
return this.showFooter && this.siteSettings.enable_powered_by_discourse;
},
_mainOutletAnimate() {
document.body.classList.remove("sidebar-animate");
},