- Fix edit library layout

- Disable book checkbox in dashboard
This commit is contained in:
aditya.chandel
2025-01-23 20:29:44 -07:00
parent 5f6f648e5d
commit d50ad8a8fd
5 changed files with 8 additions and 5 deletions
@@ -42,7 +42,9 @@
</i>
</a>
<input type="text" pInputText placeholder="Search title or author..." [(ngModel)]="bookTitle" (ngModelChange)="onBookTitleChange($event)"/>
<p-fluid>
<input type="text" pInputText placeholder="Search title or author..." [(ngModel)]="bookTitle" (ngModelChange)="onBookTitleChange($event)"/>
</p-fluid>
<p-select
[options]="sortOptions"
@@ -30,6 +30,7 @@ import {InputText} from 'primeng/inputtext';
import {FormsModule} from '@angular/forms';
import {BookFilterComponent} from './book-filter/book-filter.component';
import {Tooltip} from 'primeng/tooltip';
import {Fluid} from 'primeng/fluid';
export enum EntityType {
LIBRARY = 'Library',
@@ -42,7 +43,7 @@ export enum EntityType {
standalone: true,
templateUrl: './book-browser.component.html',
styleUrls: ['./book-browser.component.scss'],
imports: [Button, NgIf, VirtualScrollerModule, BookCardComponent, AsyncPipe, ProgressSpinner, Select, Menu, NgForOf, InputText, FormsModule, BookTableComponent, BookFilterComponent, Tooltip, NgClass],
imports: [Button, NgIf, VirtualScrollerModule, BookCardComponent, AsyncPipe, ProgressSpinner, Select, Menu, NgForOf, InputText, FormsModule, BookTableComponent, BookFilterComponent, Tooltip, NgClass, Fluid],
animations: [
trigger('slideInOut', [
state('void', style({
@@ -9,6 +9,7 @@
alt="Cover of {{ book.metadata?.title }}"
loading="lazy"/>
<p-checkbox
*ngIf="isCheckboxEnabled"
[(ngModel)]="isSelected"
binary="true"
id="select-checkbox-{{book.id}}"
@@ -15,13 +15,14 @@ import {MetadataRefreshType} from '../../../../metadata/model/request/metadata-r
import {MetadataRefreshRequest} from '../../../../metadata/model/request/metadata-refresh-request.model';
import {MetadataService} from '../../../../metadata/service/metadata.service';
import {UrlHelperService} from '../../../../utilities/service/url-helper.service';
import {NgIf} from '@angular/common';
@Component({
selector: 'app-book-card',
templateUrl: './book-card.component.html',
styleUrls: ['./book-card.component.scss'],
imports: [Button, MenuModule, CheckboxModule, FormsModule],
imports: [Button, MenuModule, CheckboxModule, FormsModule, NgIf],
})
export class BookCardComponent implements OnInit {
@Input() book!: Book;
@@ -35,8 +35,6 @@ export class LibraryShelfMenuService {
header: 'Edit Library',
modal: true,
closable: true,
width: '675px',
height: '480px',
style: {
position: 'absolute',
top: '15%',