From 5e8fb82f60197c3dba93dac739b489760de33a2b Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Tue, 4 Jun 2019 17:36:08 +0200 Subject: [PATCH] =?UTF-8?q?Structures=20en=20parall=C3=A8le:=20interdictio?= =?UTF-8?q?n=20de=20supprimer=20le=20dernier=20ouvrage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/field-set/field-set.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/field-set/field-set.component.ts b/src/app/components/field-set/field-set.component.ts index 70cd6a4ff..ee5e3de85 100644 --- a/src/app/components/field-set/field-set.component.ts +++ b/src/app/components/field-set/field-set.component.ts @@ -76,7 +76,7 @@ export class FieldSetComponent implements DoCheck { /** flag d'activation du bouton supprimer */ public get enableRemoveButton() { if (this._fieldSet.parent instanceof FieldsetContainer) { - return this._fieldSet.parent.fieldsets.length > 0; + return this._fieldSet.parent.fieldsets.length > 1; } return false; } -- GitLab