Checkpoint
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import {Component, ElementRef, OnDestroy, ViewChild,} from '@angular/core';
|
||||
import {MenuItem} from 'primeng/api';
|
||||
import {LayoutService} from './service/app.layout.service';
|
||||
import {RouterLink} from '@angular/router';
|
||||
import {DialogService as PrimeDialogService, DynamicDialogRef} from 'primeng/dynamicdialog';
|
||||
import {LibraryCreatorComponent} from '../book/component/library-creator/library-creator.component';
|
||||
import {TooltipModule} from 'primeng/tooltip';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {InputTextModule} from 'primeng/inputtext';
|
||||
import {SearchComponent} from '../book/component/search/search.component';
|
||||
import { Component, ElementRef, OnDestroy, ViewChild } from '@angular/core';
|
||||
import { MenuItem } from 'primeng/api';
|
||||
import { LayoutService } from './service/app.layout.service';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { DialogService as PrimeDialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
||||
import { LibraryCreatorComponent } from '../book/component/library-creator/library-creator.component';
|
||||
import { TooltipModule } from 'primeng/tooltip';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { InputTextModule } from 'primeng/inputtext';
|
||||
import { SearchComponent } from '../book/component/search/search.component';
|
||||
import { NotificationComponent } from '../notification/notification.component'; // Import the NotificationComponent
|
||||
|
||||
@Component({
|
||||
selector: 'app-topbar',
|
||||
@@ -17,6 +18,7 @@ import {SearchComponent} from '../book/component/search/search.component';
|
||||
FormsModule,
|
||||
InputTextModule,
|
||||
SearchComponent,
|
||||
NotificationComponent // Add NotificationComponent to imports
|
||||
],
|
||||
templateUrl: './app.topbar.component.html',
|
||||
})
|
||||
@@ -28,12 +30,11 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
@ViewChild('topbarmenubutton') topbarMenuButton!: ElementRef;
|
||||
@ViewChild('topbarmenu') menu!: ElementRef;
|
||||
|
||||
constructor(public layoutService: LayoutService, public dialogService: PrimeDialogService) {
|
||||
}
|
||||
constructor(public layoutService: LayoutService, public dialogService: PrimeDialogService) {}
|
||||
|
||||
openLibraryCreatorDialog(): void {
|
||||
this.ref = this.dialogService.open(LibraryCreatorComponent, {
|
||||
header: "Create New Library",
|
||||
header: 'Create New Library',
|
||||
modal: false,
|
||||
width: '50%',
|
||||
height: '50%',
|
||||
|
||||
Reference in New Issue
Block a user