mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-12 19:50:04 +05:00
fix: NAT mode in config section
This commit is contained in:
parent
ac1dd7b1c7
commit
305297c91a
@ -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;
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user