1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-27 06:43:41 +00:00

only show fix attachment issues for when key is null and it does not have a decryption failure

This commit is contained in:
Nick Krantz
2026-01-22 11:32:25 -06:00
parent 9563ca745c
commit beca299f5d

View File

@@ -12,12 +12,13 @@
@if (!attachment.hasDecryptionError) {
<span slot="secondary" data-testid="file-size">{{ attachment.sizeName }}</span>
}
<i
*ngIf="attachment.key == null"
slot="default-trailing"
class="bwi bwi-exclamation-triangle bwi-sm tw-text-muted"
[appA11yTitle]="'fixEncryptionTooltip' | i18n"
></i>
@if (!attachment.hasDecryptionError && attachment.key == null) {
<i
slot="default-trailing"
class="bwi bwi-exclamation-triangle bwi-sm tw-text-muted"
[appA11yTitle]="'fixEncryptionTooltip' | i18n"
></i>
}
</bit-item-content>
<ng-container slot="end">
@@ -28,7 +29,7 @@
[cipher]="cipher()"
[attachment]="attachment"
></app-download-attachment>
} @else {
} @else if (!attachment.hasDecryptionError) {
<button
[bitAction]="fixOldAttachment(attachment)"
bitButton