Disable 'Generate Exception Certificates' button when there are no certificate exceptions.
This commit is contained in:
committed by
Matt Drayer
parent
5ccc520bb3
commit
268db9080a
@@ -32,7 +32,12 @@
|
||||
render: function(){
|
||||
var template = this.loadTemplate('certificate-white-list');
|
||||
this.$el.html(template({certificates: this.collection.models}));
|
||||
|
||||
if (this.collection.isEmpty()) {
|
||||
this.$("#generate-exception-certificates").addClass("is-disabled");
|
||||
}
|
||||
else {
|
||||
this.$("#generate-exception-certificates").removeClass("is-disabled");
|
||||
}
|
||||
},
|
||||
|
||||
loadTemplate: function(name) {
|
||||
|
||||
Reference in New Issue
Block a user