Select Git revision
postfach-mail-pdf-button-container.component.ts 720 B
import { Component, OnInit } from '@angular/core';
import { PostfachService } from '@goofy-client/postfach-shared';
import { Observable } from 'rxjs';
@Component({
selector: 'goofy-client-postfach-mail-pdf-button-container',
templateUrl: './postfach-mail-pdf-button-container.component.html',
styleUrls: ['./postfach-mail-pdf-button-container.component.scss'],
})
export class PostfachMailPdfButtonContainerComponent implements OnInit {
isDownloadPdfInProgress: Observable<boolean>;
constructor(private postfachService: PostfachService) { }
ngOnInit(): void {
this.isDownloadPdfInProgress = this.postfachService.isDownloadPdfInProgress();
}
downloadPdf(): void {
this.postfachService.downloadPdf();
}
}