Commit a17c671d authored by Romain DELEAU's avatar Romain DELEAU

fix: remove possibility to remove a role occurence if there are only one

parent a4817f4e
......@@ -12,7 +12,7 @@ matTooltipPosition="before" [matTooltipDisabled]="!tooltipService.activatedToolt
<input type="number" [(ngModel)]="occurence.max" (change)="editTrace($event,'Occurrence_['+i+']_playersMax')"/>
<label> {{'occurence_player' | translate}}</label>
</div>
<button mat-button (click)="removeOccurrence(i)"><mat-icon fontIcon="remove"></mat-icon></button>
<button mat-button (click)="removeOccurrence(i)" *ngIf="role.occurences.length > 1"><mat-icon fontIcon="remove"></mat-icon></button>
</div>
<button mat-button class="piece-form-add" (click)="addOccurrence()"><mat-icon fontIcon="add"></mat-icon></button>
</div>
......
Markdown is supported
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