diff --git a/client/components/modals/item/tabs/Episodes.vue b/client/components/modals/item/tabs/Episodes.vue index 00e62917..8195154a 100644 --- a/client/components/modals/item/tabs/Episodes.vue +++ b/client/components/modals/item/tabs/Episodes.vue @@ -113,6 +113,10 @@ export default { return false }) console.log('updateResult', updateResult) + } else if (!lastEpisodeCheck) { + this.$toast.error(this.$strings.ToastDateTimeInvalidOrIncomplete) + this.checkingNewEpisodes = false + return false } this.$axios diff --git a/client/components/modals/podcast/tabs/EpisodeDetails.vue b/client/components/modals/podcast/tabs/EpisodeDetails.vue index 85cfb4ff..9a2eb77d 100644 --- a/client/components/modals/podcast/tabs/EpisodeDetails.vue +++ b/client/components/modals/podcast/tabs/EpisodeDetails.vue @@ -11,7 +11,7 @@
- +
@@ -145,11 +145,18 @@ export default { return null } + // Check pubdate is valid if it is being updated. Cannot be set to null in the web client + if (this.newEpisode.pubDate === null && this.$refs.pubdate?.$refs?.input?.isInvalidDate) { + this.$toast.error(this.$strings.ToastDateTimeInvalidOrIncomplete) + return null + } + const updatedDetails = this.getUpdatePayload() if (!Object.keys(updatedDetails).length) { this.$toast.info(this.$strings.ToastNoUpdatesNecessary) return false } + return this.updateDetails(updatedDetails) }, async updateDetails(updatedDetails) { diff --git a/client/components/ui/TextInput.vue b/client/components/ui/TextInput.vue index 6935a1dd..aaccd118 100644 --- a/client/components/ui/TextInput.vue +++ b/client/components/ui/TextInput.vue @@ -1,24 +1,6 @@