Rename metadata migration setting flags
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
import { t as translate } from 'i18next';
|
||||
import { DocumentNode } from '@apollo/client/core';
|
||||
import { TManga, TranslationKey } from '@/typings.ts';
|
||||
import { MetadataMigrationSettings, TManga, TranslationKey } from '@/typings.ts';
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import {
|
||||
ChapterConditionInput,
|
||||
@@ -125,10 +125,7 @@ type ChangeCategoriesOptions = { changeCategoriesPatch: UpdateMangaCategoriesPat
|
||||
type MigrateOptions = {
|
||||
mangaIdToMigrateTo: number;
|
||||
mode: MigrateMode;
|
||||
migrateChapters?: boolean;
|
||||
migrateCategories?: boolean;
|
||||
deleteChapters?: boolean;
|
||||
};
|
||||
} & Partial<MetadataMigrationSettings>;
|
||||
|
||||
type MarkAsReadActionOption = MarkAsReadOptions &
|
||||
PropertiesNever<ChangeCategoriesOptions> &
|
||||
|
||||
@@ -39,8 +39,8 @@ const GLOBAL_METADATA_KEYS: AppMetadataKeys[] = [
|
||||
'devices',
|
||||
|
||||
// migration
|
||||
'includeChapters',
|
||||
'includeCategories',
|
||||
'migrateChapters',
|
||||
'migrateCategories',
|
||||
'deleteChapters',
|
||||
|
||||
// browse
|
||||
|
||||
@@ -35,8 +35,8 @@ export const getDefaultSettings = (): MetadataServerSettings => ({
|
||||
devices: [DEFAULT_DEVICE],
|
||||
|
||||
// migration
|
||||
includeChapters: true,
|
||||
includeCategories: true,
|
||||
migrateChapters: true,
|
||||
migrateCategories: true,
|
||||
deleteChapters: true,
|
||||
|
||||
// browse
|
||||
|
||||
Reference in New Issue
Block a user