mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:02:45 +08:00
FIX: use getter for showPoweredBy
(#26419)
This commit is contained in:
parent
a670d6d4af
commit
2d6051a5d5
|
@ -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");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user