Clean-up codefund-ad component
This commit is contained in:
parent
943acbfeb1
commit
6097e6f097
|
@ -49,11 +49,7 @@ function loadCodeFund() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
classNameBindings: [
|
classNameBindings: [":codefund-ad"],
|
||||||
":codefund-ad",
|
|
||||||
"classForSlot",
|
|
||||||
"isResponsive:codefund-responsive"
|
|
||||||
],
|
|
||||||
propertyId: propertyId,
|
propertyId: propertyId,
|
||||||
adRequested: false,
|
adRequested: false,
|
||||||
adDetails: {},
|
adDetails: {},
|
||||||
|
@ -96,13 +92,14 @@ export default Ember.Component.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@computed()
|
||||||
checkTrustLevels: function() {
|
checkTrustLevels: function() {
|
||||||
return !(
|
return !(
|
||||||
currentUser &&
|
currentUser &&
|
||||||
currentUser.get("trust_level") >
|
currentUser.get("trust_level") >
|
||||||
Discourse.SiteSettings.codefund_through_trust_level
|
Discourse.SiteSettings.codefund_through_trust_level
|
||||||
);
|
);
|
||||||
}.property("trust_level"),
|
},
|
||||||
|
|
||||||
@computed("checkTrustLevels")
|
@computed("checkTrustLevels")
|
||||||
showAd: function(checkTrustLevels) {
|
showAd: function(checkTrustLevels) {
|
||||||
|
|
Loading…
Reference in New Issue