Double confirmation for anime deletes
This commit is contained in:
parent
cc16976ecb
commit
6cd8f725ae
@ -18,7 +18,14 @@ export function deleteObject(arn: AnimeNotifier, button: HTMLButtonElement) {
|
|||||||
if(!confirm(`Are you sure you want to delete this ${confirmType}?`)) {
|
if(!confirm(`Are you sure you want to delete this ${confirmType}?`)) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Double confirmation on anime
|
||||||
|
if(confirmType === "anime") {
|
||||||
|
if(!confirm(`Just making sure because this is not reversible. Are you absolutely sure you want to delete this ${confirmType}?`)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let endpoint = arn.findAPIEndpoint(button)
|
let endpoint = arn.findAPIEndpoint(button)
|
||||||
|
|
||||||
arn.post(endpoint + "/delete", "")
|
arn.post(endpoint + "/delete", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user