Fixes Dataset copy dialogue text.
This commit is contained in:
parent
018024d6f7
commit
05a75090e9
|
@ -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 } });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue