Skip to content
Permalink
Browse files
Fixes custom certificate upload modal
  • Loading branch information
chaptergy committed Dec 23, 2021
1 parent 6392df3 commit ac23c666599e24a6376a2117f14436f2fb86396d
Showing with 5 additions and 3 deletions.
  1. +5 −3 frontend/js/app/nginx/certificates/form.js
@@ -278,9 +278,11 @@ module.exports = Mn.View.extend({
this.ui.credentials_file_content.hide();
this.ui.loader_content.hide();
this.ui.le_error_info.hide();
const domainNames = this.ui.domain_names[0].value.split(',');
if (!domainNames || domainNames.length === 0 || (domainNames.length === 1 && domainNames[0] === "")) {
this.ui.test_domains_button.prop('disabled', true);
if (this.ui.domain_names[0]) {
const domainNames = this.ui.domain_names[0].value.split(',');
if (!domainNames || domainNames.length === 0 || (domainNames.length === 1 && domainNames[0] === "")) {
this.ui.test_domains_button.prop('disabled', true);
}
}
},

0 comments on commit ac23c66

Please sign in to comment.