Features now always enabled by default
This commit is contained in:
@@ -55,9 +55,15 @@ Template.featureEdit.helpers({
|
|||||||
return _.isString(this.uses);
|
return _.isString(this.uses);
|
||||||
},
|
},
|
||||||
enabledSelection: function(){
|
enabledSelection: function(){
|
||||||
if (!this.enabled) return "disabled";
|
if (this.enabled){
|
||||||
if (this.alwaysEnabled) return "alwaysEnabled";
|
if (this.alwaysEnabled){
|
||||||
return "enabled";
|
return "alwaysEnabled";
|
||||||
|
} else {
|
||||||
|
return "enabled";
|
||||||
|
}
|
||||||
|
} else if (this.enabled === false){ //make sure it is false, not just falsey
|
||||||
|
return "disabled";
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user