Disable 'Generate Exception Certificates' button when there are no certificate exceptions.

This commit is contained in:
Saleem Latif
2015-12-16 10:30:02 +05:00
committed by Matt Drayer
parent 5ccc520bb3
commit 268db9080a

View File

@@ -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) {