36 lines
866 B
TypeScript
36 lines
866 B
TypeScript
import { Component, Inject, OnInit } from '@angular/core';
|
|
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
import { BaseComponent } from '@common/base/base.component';
|
|
|
|
@Component({
|
|
selector: 'app-dmp-deposit-dialog',
|
|
templateUrl: './dmp-deposit-dialog.component.html',
|
|
styleUrls: ['./dmp-deposit-dialog.component.scss']
|
|
})
|
|
export class DmpDepositDialogComponent extends BaseComponent implements OnInit {
|
|
|
|
inputRepos: string[];
|
|
outputRepos: string[];
|
|
|
|
constructor(
|
|
public dialogRef: MatDialogRef<DmpDepositDialogComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public data: any
|
|
) {
|
|
super();
|
|
this.inputRepos = data['depositRepos'];
|
|
this.outputRepos = [];
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
onSubmit() {
|
|
this.dialogRef.close(this.outputRepos);
|
|
}
|
|
|
|
close() {
|
|
this.dialogRef.close(this.outputRepos);
|
|
}
|
|
|
|
}
|