Skip to content

Commit

Permalink
fix: NAT mode in config section
Browse files Browse the repository at this point in the history
  • Loading branch information
zelfroster committed Oct 23, 2023
1 parent ac1dd7b commit 305297c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
9 changes: 6 additions & 3 deletions webui-src/app/config/config_network.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -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;
}
});
},
},
Expand Down
1 change: 0 additions & 1 deletion webui-src/app/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions webui-src/app/scss/layouts/_widget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
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 {
height: 100%;
@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 {
Expand Down
2 changes: 1 addition & 1 deletion webui-src/styles.css

Large diffs are not rendered by default.

0 comments on commit 305297c

Please sign in to comment.