add cloudflare dns option to letsencrypt via manual certificate

This commit is contained in:
Jaap-Jan de Wit
2020-08-23 11:40:41 +00:00
parent 2d7576c57e
commit b9a95840e0
3 changed files with 32 additions and 2 deletions

View File

@ -20,10 +20,20 @@ module.exports = Mn.View.extend({
save: 'button.save',
other_certificate: '#other_certificate',
other_certificate_key: '#other_certificate_key',
other_intermediate_certificate: '#other_intermediate_certificate'
other_intermediate_certificate: '#other_intermediate_certificate',
cloudflare_switch: 'input[name="use_cloudflare"]',
cloudflare: '.cloudflare'
},
events: {
'change @ui.cloudflare_switch': function() {
let checked = this.ui.cloudflare_switch.prop('checked');
if (checked) {
this.ui.cloudflare.show();
} else {
this.ui.cloudflare.hide();
}
},
'click @ui.save': function (e) {
e.preventDefault();
@ -146,6 +156,7 @@ module.exports = Mn.View.extend({
},
createFilter: /^(?:[^.*]+\.?)+[^.]$/
});
this.ui.cloudflare.hide();
},
initialize: function (options) {