mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 17:24:57 +02:00
Add: episode pubdate validation before saving
This commit is contained in:
parent
0eed38b771
commit
2ec84edb5e
3 changed files with 12 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue