diff --git a/src/frontend/js/app/nginx/dead/form.js b/src/frontend/js/app/nginx/dead/form.js index 2c2acaf..39d08e8 100644 --- a/src/frontend/js/app/nginx/dead/form.js +++ b/src/frontend/js/app/nginx/dead/form.js @@ -36,7 +36,7 @@ module.exports = Mn.View.extend({ } let enabled = id === 'new' || parseInt(id, 10) > 0; - this.ui.ssl_forced + this.ui.ssl_forced.add(this.ui.http2_support) .prop('disabled', !enabled) .parents('.form-group') .css('opacity', enabled ? 1 : 0.5); diff --git a/src/frontend/js/app/nginx/proxy/form.js b/src/frontend/js/app/nginx/proxy/form.js index ee030c1..378b9b6 100644 --- a/src/frontend/js/app/nginx/proxy/form.js +++ b/src/frontend/js/app/nginx/proxy/form.js @@ -39,7 +39,7 @@ module.exports = Mn.View.extend({ } let enabled = id === 'new' || parseInt(id, 10) > 0; - this.ui.ssl_forced + this.ui.ssl_forced.add(this.ui.http2_support) .prop('disabled', !enabled) .parents('.form-group') .css('opacity', enabled ? 1 : 0.5); diff --git a/src/frontend/js/app/nginx/redirection/form.js b/src/frontend/js/app/nginx/redirection/form.js index e595052..971082e 100644 --- a/src/frontend/js/app/nginx/redirection/form.js +++ b/src/frontend/js/app/nginx/redirection/form.js @@ -36,7 +36,7 @@ module.exports = Mn.View.extend({ } let enabled = id === 'new' || parseInt(id, 10) > 0; - this.ui.ssl_forced + this.ui.ssl_forced.add(this.ui.http2_support) .prop('disabled', !enabled) .parents('.form-group') .css('opacity', enabled ? 1 : 0.5); diff --git a/src/frontend/js/models/dead-host.js b/src/frontend/js/models/dead-host.js index f6fdf47..964e689 100644 --- a/src/frontend/js/models/dead-host.js +++ b/src/frontend/js/models/dead-host.js @@ -13,6 +13,7 @@ const model = Backbone.Model.extend({ domain_names: [], certificate_id: 0, ssl_forced: false, + http2_support: false, meta: {}, advanced_config: '', // The following are expansions: diff --git a/src/frontend/js/models/proxy-host.js b/src/frontend/js/models/proxy-host.js index 742c6e2..2fe7d00 100644 --- a/src/frontend/js/models/proxy-host.js +++ b/src/frontend/js/models/proxy-host.js @@ -19,6 +19,7 @@ const model = Backbone.Model.extend({ caching_enabled: false, allow_websocket_upgrade: false, block_exploits: false, + http2_support: false, advanced_config: '', meta: {}, // The following are expansions: diff --git a/src/frontend/js/models/redirection-host.js b/src/frontend/js/models/redirection-host.js index 653eb94..ef8395b 100644 --- a/src/frontend/js/models/redirection-host.js +++ b/src/frontend/js/models/redirection-host.js @@ -16,6 +16,7 @@ const model = Backbone.Model.extend({ certificate_id: 0, ssl_forced: false, block_exploits: false, + http2_support: false, advanced_config: '', meta: {}, // The following are expansions: