1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-28 14:13:22 +00:00
Files
browser/libs/vault/src/cipher-view/attachments/attachments-v2-view.component.html
Jason Ng 6041c460b7 [PM-9809] attachments v2 refactor (#10142)
* update attachments v2 view. using download attachment component. remove excess code. Refactor location of attachments v2
2024-07-23 13:27:39 -04:00

23 lines
746 B
HTML

<bit-section>
<bit-section-header>
<h2 bitTypography="h6">{{ "attachments" | i18n }}</h2>
</bit-section-header>
<bit-item-group>
<bit-item *ngFor="let attachment of cipher.attachments">
<bit-item-content>
<span data-testid="file-name">{{ attachment.fileName }}</span>
<span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span>
</bit-item-content>
<ng-container slot="end">
<bit-item-action>
<app-download-attachment
[cipher]="cipher"
[attachment]="attachment"
[checkPwReprompt]="true"
></app-download-attachment>
</bit-item-action>
</ng-container>
</bit-item>
</bit-item-group>
</bit-section>