Commit 5e8fb82f authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Structures en parallèle: interdiction de supprimer le dernier ouvrage

Showing with 1 addition and 1 deletion
+1 -1
...@@ -76,7 +76,7 @@ export class FieldSetComponent implements DoCheck { ...@@ -76,7 +76,7 @@ export class FieldSetComponent implements DoCheck {
/** flag d'activation du bouton supprimer */ /** flag d'activation du bouton supprimer */
public get enableRemoveButton() { public get enableRemoveButton() {
if (this._fieldSet.parent instanceof FieldsetContainer) { if (this._fieldSet.parent instanceof FieldsetContainer) {
return this._fieldSet.parent.fieldsets.length > 0; return this._fieldSet.parent.fieldsets.length > 1;
} }
return false; return false;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment