Skip to content

Commit

Permalink
Only render removed button for last row of additional structures
Browse files Browse the repository at this point in the history
* TEMPORARY FIX ONLY FOR PRODUCTION WILL DO REAL FIX WITH MORE TIME
  • Loading branch information
Daniel Haselhan committed Mar 6, 2024
1 parent b749b51 commit 19fb25e
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ <h2>Additional Proposal Information</h2>
<ng-container matColumnDef="action">
<th mat-header-cell *matHeaderCellDef>Action</th>
<td mat-cell *matCellDef="let element; let i = index">
<button mat-stroked-button color="accent" (click)="onStructureRemove(i)" type="button">Remove</button>
<button
*ngIf="i === proposedStructures.length - 1"
mat-stroked-button
color="accent"
(click)="onStructureRemove(i)"
type="button"
>
Remove
</button>
</td>
</ng-container>

Expand Down

0 comments on commit 19fb25e

Please sign in to comment.