1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

fix old attachments by reuploading them

This commit is contained in:
Kyle Spearrin
2018-11-14 15:19:59 -05:00
parent 17e7ee4838
commit f485fbb687
2 changed files with 64 additions and 0 deletions

View File

@@ -74,6 +74,17 @@ export class CipherView implements View {
return this.attachments && this.attachments.length > 0;
}
get hasOldAttachments(): boolean {
if (this.hasAttachments) {
for (let i = 0; i < this.attachments.length; i++) {
if (this.attachments[i].key == null) {
return true;
}
}
}
return false;
}
get hasFields(): boolean {
return this.fields && this.fields.length > 0;
}