Small tweaks
- Update local webUI to refresh when joining server to clear modal - Updated client webUI page title - Re-added join modal to node page (client & server) - updated join modal to use node.nearbySystems
This commit is contained in:
@@ -253,8 +253,8 @@ function joinServer() {
|
||||
const responseObject = JSON.parse(Http.responseText)
|
||||
console.log(Http.status);
|
||||
console.log(responseObject);
|
||||
createToast(`${responseObject.name} will join shortly`, { showNow: true });
|
||||
$("#joinModal").modal('toggle');
|
||||
createToast(`${responseObject.name} will join shortly`);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Bootstrap demo</title>
|
||||
<title>'<%=node.name%>' - Configuration</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
|
||||
@@ -153,7 +153,9 @@
|
||||
</div>
|
||||
|
||||
<% // new System Modal %>
|
||||
<%- include("partials/modifySystemModal.ejs", {'system': "New System" , 'frequencies' : [], 'mode' : '' }) %>
|
||||
<%- include("partials/modifySystemModal.ejs", {'system': "New System" , 'frequencies' : [], 'mode' : '' }) %>
|
||||
<% // Join Server Modal %>
|
||||
<%- include("partials/joinModal.ejs", {'node': node}) %>
|
||||
</body>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="col-md-6">
|
||||
<label class="small mb-1" for="selectRadioPreset">Selected Preset:</label>
|
||||
<select class="custom-select" id="selectRadioPreset">
|
||||
<% for(const system in nearbySystems) { %>
|
||||
<% for(const system in node.nearbySystems) { %>
|
||||
<option value="<%=system%>"><%=system%></option>
|
||||
<% } %>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user