+
add
{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.CREATE-NEW-GRANT' | translate}}
diff --git a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.scss b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.scss
index c61311679..0ee135a89 100644
--- a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.scss
+++ b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.scss
@@ -25,3 +25,11 @@
width: 100%;
left: 0;
}
+
+.disabled-toggle {
+ display: flex;
+ align-self: center;
+ padding-bottom: 1em;
+ cursor: default;
+ color: #e0e0e0;
+}
diff --git a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts
index 08f208f2e..3d0e071a5 100644
--- a/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts
+++ b/dmp-frontend/src/app/ui/dmp/editor/grant-tab/grant-tab.component.ts
@@ -23,6 +23,8 @@ export class GrantTabComponent implements OnInit {
@Input() projectFormGroup: FormGroup;
@Input() funderFormGroup: FormGroup;
@Input() isFinalized: boolean;
+ @Input() isNewVersion: boolean;
+
isCreateNew = false;
isCreateNewProject = false;
isCreateNewFunder = false;
@@ -101,7 +103,8 @@ export class GrantTabComponent implements OnInit {
return this.funderService.getWithExternal(funderRequestItem)
}
- create() {
+ createGrant() {
+ if (this.isNewVersion) { return };
this.isCreateNew = !this.isCreateNew;
this.setValidators();
}
@@ -126,6 +129,9 @@ export class GrantTabComponent implements OnInit {
this.grantformGroup.get('label').disable();
this.grantformGroup.get('description').disable();
}
+ if (this.isNewVersion) {
+ this.grantformGroup.get('label').disable();
+ }
else {
this.grantformGroup.get('existGrant').enable();
this.grantformGroup.get('label').disable();