|
|
@ -145,18 +145,18 @@
|
|
|
|
.then(function () {});
|
|
|
|
.then(function () {});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function deletePodcastEpisodes(id) {
|
|
|
|
function deletePodcast(id) {
|
|
|
|
console.log(id);
|
|
|
|
// console.log(id);
|
|
|
|
var confirmed = confirm(
|
|
|
|
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) {
|
|
|
|
if (!confirmed) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
axios
|
|
|
|
axios
|
|
|
|
.delete("/podcasts/" + id + "/items")
|
|
|
|
.delete("/podcasts/" + id)
|
|
|
|
.then(function (response) {
|
|
|
|
.then(function (response) {
|
|
|
|
Vue.toasted.show("Podcast Episodes deleted successfully.", {
|
|
|
|
Vue.toasted.show("Podcast deleted successfully.", {
|
|
|
|
theme: "bubble",
|
|
|
|
theme: "bubble",
|
|
|
|
position: "top-right",
|
|
|
|
position: "top-right",
|
|
|
|
duration: 5000,
|
|
|
|
duration: 5000,
|
|
|
@ -180,7 +180,7 @@
|
|
|
|
function deletePodcastEpisodes(id) {
|
|
|
|
function deletePodcastEpisodes(id) {
|
|
|
|
console.log(id);
|
|
|
|
console.log(id);
|
|
|
|
var confirmed = confirm(
|
|
|
|
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) {
|
|
|
|
if (!confirmed) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|