Skip to content

Commit 411734f

Browse files
committed
Fix unsetting http2_support
1 parent a457a40 commit 411734f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/frontend/js/app/nginx/dead/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ module.exports = Mn.View.extend({
5959
data.ssl_forced = true;
6060
}
6161

62-
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
63-
data.http2_support = true;
62+
if (typeof data.http2_support !== 'undefined') {
63+
data.http2_support = !!data.http2_support;
6464
}
6565

6666
if (typeof data.domain_names === 'string' && data.domain_names) {

src/frontend/js/app/nginx/proxy/form.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = Mn.View.extend({
4444
.parents('.form-group')
4545
.css('opacity', enabled ? 1 : 0.5);
4646

47-
this.ui.http2_support.prop('disabled', !enabled)
47+
this.ui.http2_support.prop('disabled', !enabled);
4848
},
4949

5050
'click @ui.save': function (e) {
@@ -68,8 +68,8 @@ module.exports = Mn.View.extend({
6868
data.ssl_forced = true;
6969
}
7070

71-
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
72-
data.http2_support = true;
71+
if (typeof data.http2_support !== 'undefined') {
72+
data.http2_support = !!data.http2_support;
7373
}
7474

7575
if (typeof data.domain_names === 'string' && data.domain_names) {

src/frontend/js/app/nginx/redirection/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ module.exports = Mn.View.extend({
6262
data.ssl_forced = true;
6363
}
6464

65-
if (typeof data.http2_support !== 'undefined' && data.http2_support === '1') {
66-
data.http2_support = true;
65+
if (typeof data.http2_support !== 'undefined') {
66+
data.http2_support = !!data.http2_support;
6767
}
6868

6969
if (typeof data.domain_names === 'string' && data.domain_names) {

0 commit comments

Comments
 (0)