Prevent starting single migration while migration is in progress
This commit is contained in:
@@ -298,6 +298,11 @@ export class Mangas {
|
||||
}
|
||||
|
||||
static async migrate(mangaIds: MangaIdInfo['id'][]): Promise<void> {
|
||||
if (MigrationManager.isActive()) {
|
||||
makeToast(t`A migration is already in progress`, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
const mangas = mangaIds.map((mangaId) => {
|
||||
const manga = Mangas.getFromCache(mangaId, MANGA_MIGRATION_FIELDS, 'MANGA_MIGRATION_FIELDS');
|
||||
assertIsDefined(manga);
|
||||
|
||||
@@ -313,6 +313,10 @@ msgstr "*: Active setting"
|
||||
msgid "<0>Suwayomi does not provide any support for 3rd party repositories or extensions!</0><1/>Use with caution as there could be malicious actors making those repositories.<2/>You as the user need to verify the security and that you trust any repository or extension."
|
||||
msgstr "<0>Suwayomi does not provide any support for 3rd party repositories or extensions!</0><1/>Use with caution as there could be malicious actors making those repositories.<2/>You as the user need to verify the security and that you trust any repository or extension."
|
||||
|
||||
#: src/features/manga/services/Mangas.ts
|
||||
msgid "A migration is already in progress"
|
||||
msgstr "A migration is already in progress"
|
||||
|
||||
#: src/features/settings/Settings.constants.ts
|
||||
msgid "A preview focused web frontend built with svelte"
|
||||
msgstr "A preview focused web frontend built with svelte"
|
||||
|
||||
Reference in New Issue
Block a user