1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Add confirmation check to post deletion function

This commit is contained in:
Carly Ho 2018-12-29 16:55:47 -06:00
parent 1d07c4a72e
commit ebbe842416

View file

@ -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;
}
@ -509,5 +511,6 @@ export default {
});
}
}
}
}
</script>