From c78e24782f71e693ef895a22883d5082dd45f112 Mon Sep 17 00:00:00 2001 From: gkolokythas Date: Thu, 25 Apr 2019 18:17:29 +0300 Subject: [PATCH] Fixes bug on Dataset edit, wrongly showing the update version button. --- .../app/ui/dataset/dataset-wizard/dataset-wizard.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts index 1c72063d0..48d757d7d 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts @@ -572,7 +572,8 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr } needsUpdate() { - if (this.datasetWizardModel.isProfileLatestVersion) { + if (this.datasetWizardModel.isProfileLatestVersion || (this.datasetWizardModel.status === 1) + || (this.datasetWizardModel.isProfileLatestVersion == undefined && this.datasetWizardModel.status == undefined)) { return false; } else {