diff --git a/UI/Web/src/app/_services/action-factory.service.ts b/UI/Web/src/app/_services/action-factory.service.ts index 9e924f6e9..995bc4593 100644 --- a/UI/Web/src/app/_services/action-factory.service.ts +++ b/UI/Web/src/app/_services/action-factory.service.ts @@ -125,7 +125,7 @@ export enum Action { /** * Add to a reading profile */ - AddToReadingProfile = 30, + SetReadingProfile = 30, } /** @@ -532,17 +532,7 @@ export class ActionFactoryService { requiresAdmin: false, requiredRoles: [], children: [], - }, - { - action: Action.AddToReadingProfile, - title: 'add-to-reading-profile', - description: 'add-to-reading-profile-tooltip', - callback: this.dummyCallback, - shouldRender: this.dummyShouldRender, - requiresAdmin: false, - requiredRoles: [], - children: [], - }, + } ], }, { @@ -608,6 +598,16 @@ export class ActionFactoryService { requiredRoles: [Role.Admin], children: [], }, + { + action: Action.SetReadingProfile, + title: 'set-reading-profile', + description: 'set-reading-profile-tooltip', + callback: this.dummyCallback, + shouldRender: this.dummyShouldRender, + requiresAdmin: false, + requiredRoles: [], + children: [], + }, { action: Action.Delete, title: 'delete', diff --git a/UI/Web/src/app/_services/action.service.ts b/UI/Web/src/app/_services/action.service.ts index 5492a21bd..468f84d87 100644 --- a/UI/Web/src/app/_services/action.service.ts +++ b/UI/Web/src/app/_services/action.service.ts @@ -31,9 +31,7 @@ import {ChapterService} from "./chapter.service"; import {VolumeService} from "./volume.service"; import {DefaultModalOptions} from "../_models/default-modal-options"; import {MatchSeriesModalComponent} from "../_single-module/match-series-modal/match-series-modal.component"; -import { - BulkAddToReadingProfileComponent -} from "../cards/_modals/bulk-add-to-reading-profile/bulk-add-to-reading-profile.component"; +import {BulkSetReadingProfileComponent} from "../cards/_modals/bulk-set-reading-profile/bulk-set-reading-profile.component"; export type LibraryActionCallback = (library: Partial) => void; @@ -817,14 +815,14 @@ export class ActionService { } /** - * Adds series to a reading list + * Sets the reading profile for multiple series * @param series * @param callback */ - addMultipleToReadingProfile(series: Array, callback?: BooleanActionCallback) { + SetReadingProfileForMultiple(series: Array, callback?: BooleanActionCallback) { if (this.readingListModalRef != null) { return; } - this.readingListModalRef = this.modalService.open(BulkAddToReadingProfileComponent, { scrollable: true, size: 'md', fullscreen: 'md' }); + this.readingListModalRef = this.modalService.open(BulkSetReadingProfileComponent, { scrollable: true, size: 'md', fullscreen: 'md' }); this.readingListModalRef.componentInstance.seriesIds = series.map(s => s.id) this.readingListModalRef.componentInstance.title = "hi" diff --git a/UI/Web/src/app/cards/_modals/bulk-add-to-reading-profile/bulk-add-to-reading-profile.component.html b/UI/Web/src/app/cards/_modals/bulk-set-reading-profile/bulk-set-reading-profile.component.html similarity index 95% rename from UI/Web/src/app/cards/_modals/bulk-add-to-reading-profile/bulk-add-to-reading-profile.component.html rename to UI/Web/src/app/cards/_modals/bulk-set-reading-profile/bulk-set-reading-profile.component.html index 0523075a6..4ca32f4ae 100644 --- a/UI/Web/src/app/cards/_modals/bulk-add-to-reading-profile/bulk-add-to-reading-profile.component.html +++ b/UI/Web/src/app/cards/_modals/bulk-set-reading-profile/bulk-set-reading-profile.component.html @@ -1,4 +1,4 @@ - +