Skip to content

Commit

Permalink
Merge pull request #1485 from bcgov/feature/ALCS-1760
Browse files Browse the repository at this point in the history
Only render removed button for last row of additional structures
  • Loading branch information
dhaselhan authored Mar 6, 2024
2 parents b749b51 + 19fb25e commit 3a6c5d0
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 3a6c5d0

Please sign in to comment.