You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
argos/dmp-frontend/src/app/library/export-method-dialog/export-method-dialog.compon...

44 lines
823 B
TypeScript

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