diff --git a/client/episodes.html b/client/episodes.html index 46a4349..45464a4 100644 --- a/client/episodes.html +++ b/client/episodes.html @@ -70,6 +70,8 @@ hr{
{{ .Summary }}
{{if .DownloadPath}} Download + Delete + {{else}} {{if not $setting.AutoDownload}} Download to Disk @@ -125,6 +127,33 @@ function downloadToDisk(id){ }) return false; } + function deleteFile(id){ + + axios.get("/podcastitems/"+id+"/delete") + .then(function(response){ + Vue.toasted.show('Podcast file deleted.' ,{ + theme: "bubble", + position: "top-right", + duration : 5000 + }); + var row = document.getElementById('podcast-'+id); + row.remove(); + }) + .catch(function(error){ + if(error.response){ + + Vue.toasted.show(error.response.data?.message, { + theme: "bubble", + position: "top-right", + duration : 5000 + }) + } + + }). + then(function(){ + }) + return false; + }