feat (fe podcast): finishing podcast implementation
This commit is contained in:
parent
222b1d2d7b
commit
4818828817
14 changed files with 240 additions and 132 deletions
|
@ -57,12 +57,19 @@ const confirmAdd = async (confirm) => {
|
|||
url: url.value,
|
||||
}
|
||||
}).then(res => {
|
||||
podcastStore.updateField({key: 'title', value: res.data.podcast.title});
|
||||
podcastStore.updateField({key: 'url', value: url});
|
||||
podcastStore.currentPodcastEpisodes = res.data.episodes;
|
||||
//episodes.value = res.data.episodes;
|
||||
if (res.data.podcast) {
|
||||
podcastStore.updateField({key: 'title', value: res.data.podcast.title});
|
||||
podcastStore.updateField({key: 'url', value: url});
|
||||
podcastStore.currentPodcastEpisodes = res.data.episodes;
|
||||
}
|
||||
closeDialog();
|
||||
dialogLoading.value = false;
|
||||
//episodes.value = res.data.episodes;
|
||||
openDialog(
|
||||
'info',
|
||||
'Attenzione',
|
||||
'L\'URL inserito non è un feed RSS valido'
|
||||
);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -143,6 +150,7 @@ const resetItemEdited = () => {
|
|||
@confirm="confirm"
|
||||
@after-leave="closeDialog"
|
||||
:loading="dialogLoading"
|
||||
:hide_confirm="dialog.type === 'info' ? true : false"
|
||||
>
|
||||
<VTextField
|
||||
label="Feed RSS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue