side bar and ui node list fixes
This commit is contained in:
parent
cf669024bf
commit
895b4fe4fd
4 changed files with 15 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue