mirror of https://github.com/pixelfed/pixelfed.git
Add confirmation check to post deletion function
This commit is contained in:
parent
1d07c4a72e
commit
ebbe842416
|
@ -495,6 +495,8 @@ export default {
|
|||
},
|
||||
|
||||
deletePost() {
|
||||
var result = confirm('Are you sure you want to delete this post?');
|
||||
if (result) {
|
||||
if($('body').hasClass('loggedIn') == false) {
|
||||
return;
|
||||
}
|
||||
|
@ -510,4 +512,5 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue