fix: NAT mode in config section

This commit is contained in:
zelfroster 2023-10-23 20:14:47 +05:30
parent ac1dd7b1c7
commit 305297c91a
4 changed files with 11 additions and 9 deletions

View File

@ -1,7 +1,7 @@
const m = require('mithril');
const rs = require('rswebui');
const util = require('config/config_util'); // for future use
const util = require('config/config_util');
const SetNwMode = () => {
const networkModes = [
@ -124,11 +124,14 @@ const SetNAT = () => {
'select',
{
value: netMode,
oninput: (e) => (netMode = e.target.value),
onchange: () => {
onchange: (e) => {
rs.rsJsonApiRequest('/rsPeers/setNetworkMode', {
sslId,
netMode,
}).then((res) => {
if (res.body.retval) {
netMode = e.target.value;
}
});
},
},

View File

@ -79,7 +79,6 @@ function loginComponent() {
const textError = () => m('p.error[id=error]');
return {
oninit: () => verifyLogin(uname, passwd, url, false),
view: () => {
return m(
'form.login-page',

View File

@ -8,10 +8,10 @@
border-radius: 0.5rem;
overflow: auto;
& .top-heading {
@include flex(column, $justify: space-between);
@include flex($justify: space-between);
}
&__heading {
@include flex(column, $justify: space-between, $align: center);
@include flex($justify: space-between, $align: center);
border-bottom: 2px solid #999;
}
&__body {
@ -19,9 +19,9 @@
@include flex(column);
overflow: auto;
&-heading {
@include flex(column, $justify: space-between, $align: center);
@include flex($justify: space-between, $align: center);
& .action {
@include flex(column, $gap: 0.5rem);
@include flex($gap: 0.5rem);
}
}
&-content {

File diff suppressed because one or more lines are too long