Fixes Dataset copy dialogue text.

This commit is contained in:
gkolokythas 2019-04-16 16:47:02 +03:00
parent 018024d6f7
commit 05a75090e9
1 changed files with 2 additions and 4 deletions

View File

@ -522,16 +522,14 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
datasetId: this.formGroup.value.id,
datasetProfileId: this.formGroup.value.profile,
datasetProfileExist: false,
confirmButton: this.language.instant('GENERAL.CONFIRMATION-DIALOG.ACTIONS.CONFIRM'),
cancelButton: this.language.instant('GENERAL.CONFIRMATION-DIALOG.ACTIONS.CANCEL')
confirmButton: this.language.instant('DATASET-WIZARD.DIALOGUE.COPY'),
cancelButton: this.language.instant('DATASET-WIZARD.DIALOGUE.CANCEL')
}
});
dialogRef.afterClosed().pipe(takeUntil(this._destroyed))
.subscribe(result => {
if (result && result.datasetProfileExist) {
console.log("I came out of the dialogue with result");
console.log(result.formControl);
const newDmpId = result.formControl.value.id
this.router.navigate(['/datasets/copy/' + result.datasetId], { queryParams: { newDmpId: newDmpId } });
}