1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

Display separator between ngFor components (#2359)

We currently remove the separator element when a `box-content-row`
is the last child. However, when we create these rows from ng templates
each row gets a separate template element wrapping it.
This PR tells the cipher-row component whether it is the last child
This commit is contained in:
Matt Gibson
2022-02-11 10:30:55 -06:00
committed by GitHub
parent bf94e79f08
commit b9fb223dea
4 changed files with 11 additions and 1 deletions

View File

@@ -97,8 +97,9 @@
</h2>
<div class="box-content">
<app-cipher-row
*cdkVirtualFor="let c of ciphers"
*cdkVirtualFor="let c of ciphers; let last = last"
[cipher]="c"
[last]="last"
title="{{ 'viewItem' | i18n }}"
(onSelected)="selectCipher($event)"
(launchEvent)="launchCipher($event)"