Skip to content
Snippets Groups Projects
Commit 5e8fb82f authored by mathias.chouet's avatar mathias.chouet
Browse files

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

parent 405bb347
No related branches found
No related tags found
No related merge requests found
...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment