fix argument passed in getSingleBlueprint
This commit is contained in:
parent
5f3ab00009
commit
0c9601d6f0
|
@ -239,7 +239,7 @@ export class DraftsComponent extends BaseComponent implements OnInit {
|
||||||
this.dmpFormGroup = this.dmpModel.buildForm();
|
this.dmpFormGroup = this.dmpModel.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -305,7 +305,7 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
|
||||||
this.dmpFormGroup = this.dmpModel.buildForm();
|
this.dmpFormGroup = this.dmpModel.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -258,7 +258,7 @@ export class RecentEditedDmpActivityComponent extends BaseComponent implements O
|
||||||
this.dmpFormGroup = this.dmpModel.buildForm();
|
this.dmpFormGroup = this.dmpModel.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -95,7 +95,7 @@ export class DmpCloneComponent extends BaseComponent implements OnInit {
|
||||||
this.formGroup = this.dmp.buildForm();
|
this.formGroup = this.dmp.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -176,7 +176,7 @@ export class DmpEditorBlueprintComponent extends CheckDeactivateBaseComponent im
|
||||||
|
|
||||||
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
|
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.selectedDmpBlueprintDefinition = result.definition;
|
this.selectedDmpBlueprintDefinition = result.definition;
|
||||||
|
@ -247,7 +247,7 @@ export class DmpEditorBlueprintComponent extends CheckDeactivateBaseComponent im
|
||||||
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
|
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.selectedDmpBlueprintDefinition = result.definition;
|
this.selectedDmpBlueprintDefinition = result.definition;
|
||||||
|
|
|
@ -178,7 +178,7 @@ export class DmpListingItemComponent extends BaseComponent implements OnInit {
|
||||||
this.dmpFormGroup = this.dmpModel.buildForm();
|
this.dmpFormGroup = this.dmpModel.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.dmpFormGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.dmpFormGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.dmpFormGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.dmpFormGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -212,7 +212,7 @@ export class DmpOverviewComponent extends BaseComponent implements OnInit {
|
||||||
this.formGroup = this.dmpModel.buildForm();
|
this.formGroup = this.dmpModel.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
|
@ -63,7 +63,7 @@ export class DmpWizardComponent extends BaseComponent implements OnInit, IBreadC
|
||||||
this.formGroup = this.dmp.buildForm();
|
this.formGroup = this.dmp.buildForm();
|
||||||
|
|
||||||
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
if (!isNullOrUndefined(this.formGroup.get('profile').value)) {
|
||||||
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value.id)
|
this.dmpProfileService.getSingleBlueprint(this.formGroup.get('profile').value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.checkForGrant(result.definition);
|
this.checkForGrant(result.definition);
|
||||||
|
|
Loading…
Reference in New Issue