Add: episode pubdate validation before saving

This commit is contained in:
Nicholas Wallace 2025-01-06 20:00:42 -07:00
parent 0eed38b771
commit 2ec84edb5e
3 changed files with 12 additions and 4 deletions

View file

@ -150,6 +150,12 @@ export default {
this.$toast.info(this.$strings.ToastNoUpdatesNecessary)
return false
}
// Check pubdate is valid if it is being updated. Cannot be set to null in the web client
if (updatedDetails.pubDate === null) {
this.$toast.error(this.$strings.ToastEpisodePubDateUpdateFailed)
return null
}
return this.updateDetails(updatedDetails)
},
async updateDetails(updatedDetails) {