mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:03:15 +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;
|
this.footer.showFooter = value;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get showPoweredBy() {
|
||||||
|
return this.showFooter && this.siteSettings.enable_powered_by_discourse;
|
||||||
|
},
|
||||||
|
|
||||||
@discourseComputed
|
@discourseComputed
|
||||||
canSignUp() {
|
canSignUp() {
|
||||||
return (
|
return (
|
||||||
|
@ -59,11 +63,6 @@ export default Controller.extend({
|
||||||
return this.capabilities.isAppWebview || this.capabilities.isiOSPWA;
|
return this.capabilities.isAppWebview || this.capabilities.isiOSPWA;
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed
|
|
||||||
showPoweredBy() {
|
|
||||||
return this.showFooter && this.siteSettings.enable_powered_by_discourse;
|
|
||||||
},
|
|
||||||
|
|
||||||
_mainOutletAnimate() {
|
_mainOutletAnimate() {
|
||||||
document.body.classList.remove("sidebar-animate");
|
document.body.classList.remove("sidebar-animate");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user