library title case insensitive check (#4099)

This commit is contained in:
Cilibiu Bogdan
2018-12-21 17:01:42 +02:00
committed by Eugenio Romano
parent b5f9036545
commit 5396cfb662
2 changed files with 28 additions and 9 deletions

View File

@@ -198,7 +198,7 @@ export class LibraryDialogComponent implements OnInit, OnDestroy {
const { entries } = (await this.findLibraryByTitle(libraryTitle)).list;
if (entries.length) {
this.libraryTitleExists = entries[0].entry.title === libraryTitle;
this.libraryTitleExists = entries[0].entry.title.toLowerCase() === libraryTitle.toLowerCase();
} else {
this.libraryTitleExists = false;
}