argos/dmp-frontend/src/app/library/export-method-dialog/export-method-dialog.compon...

44 lines
823 B
TypeScript
Raw Normal View History

2019-05-21 15:42:28 +02:00
import { Component, OnInit, Inject } from '@angular/core';
2019-09-23 10:17:03 +02:00
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
2019-05-21 15:42:28 +02:00
@Component({
selector: 'app-export-method-dialog',
templateUrl: './export-method-dialog.component.html',
styleUrls: ['./export-method-dialog.component.scss']
2019-05-21 15:42:28 +02:00
})
export class ExportMethodDialogComponent implements OnInit {
constructor(
public dialogRef: MatDialogRef<ExportMethodDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any
) { }
2019-05-21 15:42:28 +02:00
ngOnInit() {
}
2019-05-21 15:42:28 +02:00
close() {
this.dialogRef.close(false);
}
2019-05-21 15:42:28 +02:00
downloadXML() {
this.dialogRef.close("xml");
}
2019-05-21 15:42:28 +02:00
downloadDocument() {
this.dialogRef.close("doc");
}
2019-05-21 15:42:28 +02:00
downloadPdf() {
this.dialogRef.close("pdf");
}
2019-05-21 15:42:28 +02:00
downloadJson() {
this.dialogRef.close("json");
}
isFinalized() {
return this.data.isFinalized;
}
2019-05-21 15:42:28 +02:00
}