side bar and ui node list fixes

This commit is contained in:
Kevin Froman 2020-10-15 23:24:25 +00:00
parent cf669024bf
commit 895b4fe4fd
4 changed files with 15 additions and 8 deletions

View File

@ -53,7 +53,10 @@ class PrivateEndpoints:
if result == "success":
return Response("success")
else:
return Response(result, 409)
if "already" in result:
return Response(result, 409)
else:
return Response(result, 400)
@private_endpoints_bp.route('/www/<path:path>', endpoint='www')
def wwwPublic(path):

View File

@ -271,7 +271,7 @@
<i class="fas fa-link"></i>
Outgoing Connections:
<div class="control">
<div class="container connectedNodesControl">
<pre id="connectedNodes">Unable to get nodes</pre>
</div>
<br>

View File

@ -15,9 +15,9 @@
}
#connectedNodes{
overflow-y: auto;
overflow-y: hidden;
max-height: 300px;
max-width: 300px;
}
#configToggle, #configContent{
@ -41,9 +41,9 @@
display: block;
vertical-align: bottom;
}
/* ---- particles.js container ---- */
#particles-js {
position:absolute;
width:100%;
@ -51,11 +51,11 @@
top:0;
z-index:-1;
}
.mainCont{
z-index: 2;
position: fixed;
}
.torTransportField {

View File

@ -25,6 +25,10 @@ function sidebarAddPeerRegister(){
}})
.then(function(resp){
if (! resp.ok){
if (resp.status == 409){
PNotify.notice({text: "Peer already added"})
return
}
PNotify.error({text: "Could not add peer. Is your input valid?"})
throw new Error("Could not add peer " + newPeer)
}