From e07000f4ad3c8a243a01229f5373daaafe718202 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Tue, 12 Jan 2021 14:37:45 +0530 Subject: [PATCH] fix breaking delete button --- client/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/index.html b/client/index.html index e29db1e..452dd65 100644 --- a/client/index.html +++ b/client/index.html @@ -145,18 +145,18 @@ .then(function () {}); return false; } - function deletePodcastEpisodes(id) { - console.log(id); + function deletePodcast(id) { + // console.log(id); var confirmed = confirm( - "Are you sure you want to delete all episodes this podcast?" + "Are you sure you want to delete this podcast and all files?" ); if (!confirmed) { return false; } axios - .delete("/podcasts/" + id + "/items") + .delete("/podcasts/" + id) .then(function (response) { - Vue.toasted.show("Podcast Episodes deleted successfully.", { + Vue.toasted.show("Podcast deleted successfully.", { theme: "bubble", position: "top-right", duration: 5000, @@ -180,7 +180,7 @@ function deletePodcastEpisodes(id) { console.log(id); var confirmed = confirm( - "Are you sure you want to delete all episodes this podcast?" + "Are you sure you want to delete all episodes of this podcast?" ); if (!confirmed) { return false;