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

@ -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)
}