diff --git a/komga-webui/src/components/dialogs/CollectionAddToDialog.vue b/komga-webui/src/components/dialogs/CollectionAddToDialog.vue index a02c53b9..6ba7f3ac 100644 --- a/komga-webui/src/components/dialogs/CollectionAddToDialog.vue +++ b/komga-webui/src/components/dialogs/CollectionAddToDialog.vue @@ -116,7 +116,7 @@ export default Vue.extend({ else return [this.series.id] }, duplicate(): string { - if (this.newCollection !== '' && this.collections.some(e => e.name === this.newCollection)) { + if (this.newCollection !== '' && this.collections.some(e => e.name.toLowerCase() === this.newCollection.toLowerCase())) { return this.$t('dialog.add_to_collection.field_search_create_error').toString() } else return '' }, diff --git a/komga-webui/src/components/dialogs/CollectionEditDialog.vue b/komga-webui/src/components/dialogs/CollectionEditDialog.vue index 486fd854..d2e6c4da 100644 --- a/komga-webui/src/components/dialogs/CollectionEditDialog.vue +++ b/komga-webui/src/components/dialogs/CollectionEditDialog.vue @@ -157,7 +157,7 @@ export default Vue.extend({ }, getErrorsName(): string { if (this.form.name === '') return this.$t('common.required').toString() - if (this.form.name !== this.collection.name && this.collections.some(e => e.name === this.form.name)) { + if (this.form.name.toLowerCase() !== this.collection.name.toLowerCase() && this.collections.some(e => e.name.toLowerCase() === this.form.name.toLowerCase())) { return this.$t('dialog.add_to_collection.field_search_create_error').toString() } return '' diff --git a/komga-webui/src/components/dialogs/ReadListAddToDialog.vue b/komga-webui/src/components/dialogs/ReadListAddToDialog.vue index 3b907b5d..16652a04 100644 --- a/komga-webui/src/components/dialogs/ReadListAddToDialog.vue +++ b/komga-webui/src/components/dialogs/ReadListAddToDialog.vue @@ -118,7 +118,7 @@ export default Vue.extend({ else return [this.books.id] }, duplicate(): string { - if (this.newReadList !== '' && this.readLists.some(e => e.name === this.newReadList)) { + if (this.newReadList !== '' && this.readLists.some(e => e.name.toLowerCase() === this.newReadList.toLowerCase())) { return this.$t('dialog.add_to_readlist.field_search_create_error').toString() } else return '' }, diff --git a/komga-webui/src/components/dialogs/ReadListEditDialog.vue b/komga-webui/src/components/dialogs/ReadListEditDialog.vue index 6173af47..b8151c9c 100644 --- a/komga-webui/src/components/dialogs/ReadListEditDialog.vue +++ b/komga-webui/src/components/dialogs/ReadListEditDialog.vue @@ -172,7 +172,7 @@ export default Vue.extend({ }, getErrorsName(): string { if (this.form.name === '') return this.$t('common.required').toString() - if (this.form.name !== this.readList.name && this.readLists.some(e => e.name === this.form.name)) { + if (this.form.name.toLowerCase() !== this.readList.name.toLowerCase() && this.readLists.some(e => e.name.toLowerCase() === this.form.name.toLowerCase())) { return this.$t('dialog.add_to_readlist.field_search_create_error').toString() } return ''