diff --git a/booklore-ui/src/app/book/component/book-browser/book-browser.component.html b/booklore-ui/src/app/book/component/book-browser/book-browser.component.html index 7f6ec18bc..de1bd2c57 100644 --- a/booklore-ui/src/app/book/component/book-browser/book-browser.component.html +++ b/booklore-ui/src/app/book/component/book-browser/book-browser.component.html @@ -53,11 +53,12 @@
diff --git a/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts index af54ac85f..8ceb8e9eb 100644 --- a/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/book/component/book-browser/book-browser.component.ts @@ -78,7 +78,7 @@ export class BookBrowserComponent implements OnInit { this.bookTitle = ''; }); - this.setupMenu(); + //this.setupMenu(); } private getRouteParams(): Observable<{ libraryId: number; shelfId: number }> { @@ -230,7 +230,30 @@ export class BookBrowserComponent implements OnInit { this.bookTitle$.next(newTitle); } - setupMenu(): void { + openShelfAssigner() { + this.ref = this.dialogService.open(ShelfAssignerComponent, { + header: `Update Books Shelves`, + modal: true, + closable: true, + width: '30%', + height: '60%', + contentStyle: {overflow: 'auto'}, + baseZIndex: 10, + style: { + position: 'absolute', + top: '15%', + }, + data: { + isMultiBooks: true, + bookIds: this.selectedBooks + }, + }); + this.ref.onClose.subscribe(() => { + this.selectedBooks.clear(); + }); + } + + /*setupMenu(): void { this.multiSelectItems = [ { label: 'Options', @@ -239,27 +262,13 @@ export class BookBrowserComponent implements OnInit { label: 'Edit shelf', icon: 'pi pi-folder', command: () => { - this.ref = this.dialogService.open(ShelfAssignerComponent, { - header: `Update Books Shelves`, - modal: true, - width: '30%', - height: '70%', - contentStyle: {overflow: 'auto'}, - baseZIndex: 10, - data: { - isMultiBooks: true, - bookIds: this.selectedBooks - }, - }); - this.ref.onClose.subscribe(() => { - this.selectedBooks.clear(); - }); + } } ], }, ]; - } + }*/ private initializeLibraryMenuItems(): void { this.entityOptions = [ diff --git a/booklore-ui/src/app/book/component/configurator/configurator.component.html b/booklore-ui/src/app/book/component/configurator/configurator.component.html index 6c2e2d5f6..4f500a861 100644 --- a/booklore-ui/src/app/book/component/configurator/configurator.component.html +++ b/booklore-ui/src/app/book/component/configurator/configurator.component.html @@ -9,7 +9,7 @@ [title]="primaryColor.name" (click)="updateColors($event, 'primary', primaryColor)" [ngClass]="{ 'active-color': primaryColor.name === selectedPrimaryColor() }" - [style]="{ 'background-color': primaryColor.name === 'noir' ? 'var(--text-color)' : primaryColor.palette?.['500'] || 'transparent' }" + [style]="{ 'background-color': primaryColor.name === 'noir' ? 'var(--text-color)' : primaryColor.palette['500'] || 'transparent' }" > }