Add track action to manga action menu in library

This commit is contained in:
schroda
2024-03-28 17:19:20 +01:00
parent 5dbf1ce30c
commit 7990ffda71
3 changed files with 40 additions and 3 deletions

View File

@@ -27,7 +27,8 @@ export type MangaAction =
| 'mark_as_unread'
| 'remove_from_library'
| 'change_categories'
| 'migrate';
| 'migrate'
| 'track';
export const actionToTranslationKey: {
[key in MangaAction]: {
@@ -95,6 +96,14 @@ export const actionToTranslationKey: {
success: 'manga.action.migrate.label.success',
error: 'manga.action.migrate.label.error',
},
track: {
action: {
single: 'manga.action.track.add.label.action',
selected: 'manga.action.track.add.label.action', // not supported
},
success: 'manga.action.track.add.label.success',
error: 'manga.action.track.add.label.error',
},
};
export type MangaChapterCountInfo = { chapters: Pick<TManga['chapters'], 'totalCount'> };