side bar and ui node list fixes
This commit is contained in:
parent
cf669024bf
commit
895b4fe4fd
@ -53,7 +53,10 @@ class PrivateEndpoints:
|
||||
if result == "success":
|
||||
return Response("success")
|
||||
else:
|
||||
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):
|
||||
|
@ -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>
|
||||
|
@ -15,9 +15,9 @@
|
||||
}
|
||||
|
||||
#connectedNodes{
|
||||
overflow-y: auto;
|
||||
overflow-y: hidden;
|
||||
max-height: 300px;
|
||||
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
#configToggle, #configContent{
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user