Use button on features is now disabled rather than hidden

This commit is contained in:
Thaum
2015-03-04 11:47:53 +00:00
parent 821f28eb22
commit 251d056a03
3 changed files with 12 additions and 2 deletions

View File

@@ -6,6 +6,12 @@ Template.features.helpers({
hasUses: function(){
return this.usesValue() > 0;
},
noUsesLeft: function(){
return this.usesLeft() <= 0;
},
usesFull: function(){
return this.usesLeft() >= this.usesValue();
},
colorClass: function(){
return getColorClass(this.color)
},