Fix metadata viewer send custom button
This commit is contained in:
committed by
Aditya Chandel
parent
4435055c5a
commit
dba3bc1c8e
-1
@@ -1,5 +1,4 @@
|
||||
<div *ngIf="showFilters" class="w-[225px] ml-4 h-[calc(100vh-6.5rem)] rounded-xl bg-[var(--card-background)] overflow-hidden">
|
||||
<p class="text-xl p-4">Filters:</p>
|
||||
<p-accordion [value]="0">
|
||||
<p-accordion-panel *ngFor="let filterType of filterTypes; let i = index" [value]="i">
|
||||
<p-accordion-header>{{ filterType | titlecase }}</p-accordion-header>
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
import {Component, inject, OnInit} from '@angular/core';
|
||||
import {Button} from 'primeng/button';
|
||||
import {AsyncPipe, NgForOf, NgIf} from '@angular/common';
|
||||
import {Observable} from 'rxjs';
|
||||
import {first, Observable} from 'rxjs';
|
||||
import {BookService} from '../../../book/service/book.service';
|
||||
import {BookMetadataCenterService} from '../book-metadata-center.service';
|
||||
import {Rating} from 'primeng/rating';
|
||||
@@ -45,7 +45,7 @@ export class MetadataViewerComponent implements OnInit {
|
||||
{
|
||||
label: 'Custom Send',
|
||||
command: () => {
|
||||
this.metadata$.subscribe((metadata) => {
|
||||
this.metadata$.pipe(first()).subscribe((metadata) => {
|
||||
if (metadata) {
|
||||
this.dialogService.open(BookSenderComponent, {
|
||||
header: 'Send Book to Email',
|
||||
|
||||
Reference in New Issue
Block a user