From 7f216844b9e88496347e10621912124b411dd905 Mon Sep 17 00:00:00 2001 From: Daniel Agoston Date: Mon, 5 Mar 2018 16:00:30 +0100 Subject: [PATCH] fix addreferencecomponents buttonText issue --- .../material-add-reference.component.ts | 2 +- src/lib/src/widget-library/add-reference.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/src/framework-library/material-design-framework/material-add-reference.component.ts b/src/lib/src/framework-library/material-design-framework/material-add-reference.component.ts index 461ed181..e4616915 100755 --- a/src/lib/src/framework-library/material-design-framework/material-add-reference.component.ts +++ b/src/lib/src/framework-library/material-design-framework/material-add-reference.component.ts @@ -50,7 +50,7 @@ export class MaterialAddReferenceComponent implements OnInit { layoutIndex: this.layoutIndex.slice(0, -1), layoutNode: this.jsf.getParentNode(this), }; - return parent.layoutNode.add || + return parent.layoutNode.options.add || this.jsf.setArrayItemTitle(parent, this.layoutNode, this.itemCount); } } diff --git a/src/lib/src/widget-library/add-reference.component.ts b/src/lib/src/widget-library/add-reference.component.ts index 2c17c2cd..95e8f2c0 100755 --- a/src/lib/src/widget-library/add-reference.component.ts +++ b/src/lib/src/widget-library/add-reference.component.ts @@ -48,7 +48,7 @@ export class AddReferenceComponent implements OnInit { layoutIndex: this.layoutIndex.slice(0, -1), layoutNode: this.jsf.getParentNode(this) }; - return parent.layoutNode.add || + return parent.layoutNode.options.add || this.jsf.setArrayItemTitle(parent, this.layoutNode, this.itemCount); } }