- Frontend path: - rename the tracked Angular app tree from `booklore-ui/` to `frontend/` - preserve file contents during the move so this commit stays focused on the path change itself - Frontend docs: - update the moved frontend README and contribution guide where they refer to the renamed folder - keep those edits limited to path references introduced by the directory rename
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import {Component, inject} from '@angular/core';
|
|
import {LiveNotificationBoxComponent} from '../live-notification-box/live-notification-box.component';
|
|
import {MetadataProgressService} from '../../service/metadata-progress.service';
|
|
import {map} from 'rxjs/operators';
|
|
import {AsyncPipe} from '@angular/common';
|
|
import {BookdropFileService} from '../../../features/bookdrop/service/bookdrop-file.service';
|
|
import {BookdropFilesWidgetComponent} from '../../../features/bookdrop/component/bookdrop-files-widget/bookdrop-files-widget.component';
|
|
import {MetadataProgressWidgetComponent} from '../metadata-progress-widget/metadata-progress-widget-component';
|
|
|
|
@Component({
|
|
selector: 'app-unified-notification-popover-component',
|
|
imports: [
|
|
LiveNotificationBoxComponent,
|
|
MetadataProgressWidgetComponent,
|
|
AsyncPipe,
|
|
BookdropFilesWidgetComponent
|
|
],
|
|
templateUrl: './unified-notification-popover-component.html',
|
|
standalone: true,
|
|
styleUrl: './unified-notification-popover-component.scss'
|
|
})
|
|
export class UnifiedNotificationBoxComponent {
|
|
metadataProgressService = inject(MetadataProgressService);
|
|
bookdropFileService = inject(BookdropFileService);
|
|
|
|
hasMetadataTasks$ = this.metadataProgressService.activeTasks$.pipe(
|
|
map(tasks => Object.keys(tasks).length > 0)
|
|
);
|
|
|
|
hasPendingBookdropFiles$ = this.bookdropFileService.hasPendingFiles$;
|
|
}
|