Features now always enabled by default

This commit is contained in:
Stefan Zermatten
2015-04-24 12:15:50 +02:00
parent 40500517af
commit e0209df270

View File

@@ -55,9 +55,15 @@ Template.featureEdit.helpers({
return _.isString(this.uses);
},
enabledSelection: function(){
if (!this.enabled) return "disabled";
if (this.alwaysEnabled) return "alwaysEnabled";
return "enabled";
if (this.enabled){
if (this.alwaysEnabled){
return "alwaysEnabled";
} else {
return "enabled";
}
} else if (this.enabled === false){ //make sure it is false, not just falsey
return "disabled";
}
},
});