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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user