mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-30 12:14:06 +01:00
Add: episode pubdate validation before saving
This commit is contained in:
1 parent
0eed38b771
commit
2ec84edb5e
3 files changed
+12
-4
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user