Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into 22.04
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   src/App.js
	modified:   src/views/account/AccountView/AddServer.js
	modified:   src/views/account/AccountView/ServerInfo.js
  • Loading branch information
HadleyKing committed Apr 5, 2022
2 parents 8c10c95 + 67e0109 commit 1f8f77f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function App() {
* @example
* const sending = hostnames.local;
*/
const sending = hostnames.local;
const sending = hostnames.production;

useEffect(() => {
if (localStorage.getItem('token')) {
Expand Down
1 change: 1 addition & 0 deletions src/views/account/AccountView/AddServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export default function AddServer({ showing, setShowing }) {
// UX thing, give a little time before closing the dialog.
setTimeout(handleClose, 250);
setServerInfo('');
window.location.reload();
} else {
// Display whatever the server said.
console.log('Failed to add the server because: ', result.data.detail);
Expand Down
2 changes: 2 additions & 0 deletions src/views/account/AccountView/ServerInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function ServerInfo({ setShowing }) {
console.log('Failed to remove the API server because: ', result.data.detail);
}
}));
window.location.reload(false);
}
};

Expand All @@ -74,6 +75,7 @@ export default function ServerInfo({ setShowing }) {
});
});
setRows(holder);
console.log(rows);
setServerChange(false);
}, [serverChange]);

Expand Down

0 comments on commit 1f8f77f

Please sign in to comment.