- Fix edit library layout
- Disable book checkbox in dashboard
This commit is contained in:
@@ -42,7 +42,9 @@
|
|||||||
</i>
|
</i>
|
||||||
</a>
|
</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
|
<p-select
|
||||||
[options]="sortOptions"
|
[options]="sortOptions"
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ import {InputText} from 'primeng/inputtext';
|
|||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {BookFilterComponent} from './book-filter/book-filter.component';
|
import {BookFilterComponent} from './book-filter/book-filter.component';
|
||||||
import {Tooltip} from 'primeng/tooltip';
|
import {Tooltip} from 'primeng/tooltip';
|
||||||
|
import {Fluid} from 'primeng/fluid';
|
||||||
|
|
||||||
export enum EntityType {
|
export enum EntityType {
|
||||||
LIBRARY = 'Library',
|
LIBRARY = 'Library',
|
||||||
@@ -42,7 +43,7 @@ export enum EntityType {
|
|||||||
standalone: true,
|
standalone: true,
|
||||||
templateUrl: './book-browser.component.html',
|
templateUrl: './book-browser.component.html',
|
||||||
styleUrls: ['./book-browser.component.scss'],
|
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: [
|
animations: [
|
||||||
trigger('slideInOut', [
|
trigger('slideInOut', [
|
||||||
state('void', style({
|
state('void', style({
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
alt="Cover of {{ book.metadata?.title }}"
|
alt="Cover of {{ book.metadata?.title }}"
|
||||||
loading="lazy"/>
|
loading="lazy"/>
|
||||||
<p-checkbox
|
<p-checkbox
|
||||||
|
*ngIf="isCheckboxEnabled"
|
||||||
[(ngModel)]="isSelected"
|
[(ngModel)]="isSelected"
|
||||||
binary="true"
|
binary="true"
|
||||||
id="select-checkbox-{{book.id}}"
|
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 {MetadataRefreshRequest} from '../../../../metadata/model/request/metadata-refresh-request.model';
|
||||||
import {MetadataService} from '../../../../metadata/service/metadata.service';
|
import {MetadataService} from '../../../../metadata/service/metadata.service';
|
||||||
import {UrlHelperService} from '../../../../utilities/service/url-helper.service';
|
import {UrlHelperService} from '../../../../utilities/service/url-helper.service';
|
||||||
|
import {NgIf} from '@angular/common';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-book-card',
|
selector: 'app-book-card',
|
||||||
templateUrl: './book-card.component.html',
|
templateUrl: './book-card.component.html',
|
||||||
styleUrls: ['./book-card.component.scss'],
|
styleUrls: ['./book-card.component.scss'],
|
||||||
imports: [Button, MenuModule, CheckboxModule, FormsModule],
|
imports: [Button, MenuModule, CheckboxModule, FormsModule, NgIf],
|
||||||
})
|
})
|
||||||
export class BookCardComponent implements OnInit {
|
export class BookCardComponent implements OnInit {
|
||||||
@Input() book!: Book;
|
@Input() book!: Book;
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ export class LibraryShelfMenuService {
|
|||||||
header: 'Edit Library',
|
header: 'Edit Library',
|
||||||
modal: true,
|
modal: true,
|
||||||
closable: true,
|
closable: true,
|
||||||
width: '675px',
|
|
||||||
height: '480px',
|
|
||||||
style: {
|
style: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: '15%',
|
top: '15%',
|
||||||
|
|||||||
Reference in New Issue
Block a user