mirror of https://github.com/Chocobozzz/PeerTube
Add alert if the pod already made friends
parent
b3077e4170
commit
d7c01e7793
|
@ -58,6 +58,11 @@
|
||||||
url: '/api/v1/pods/makefriends',
|
url: '/api/v1/pods/makefriends',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
statusCode: {
|
||||||
|
409: function () {
|
||||||
|
alert('Already made friends.')
|
||||||
|
}
|
||||||
|
},
|
||||||
success: function () {
|
success: function () {
|
||||||
alert('Made friends!')
|
alert('Made friends!')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue