1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-20 21:01:29 +01:00

file size prop

This commit is contained in:
Kyle Spearrin 2019-05-01 10:35:52 -04:00
parent c300b6102f
commit ebedf215d2

View File

@ -21,4 +21,13 @@ export class AttachmentView implements View {
this.size = a.size;
this.sizeName = a.sizeName;
}
get fileSize(): number {
try {
if (this.size != null) {
return parseInt(this.size, null);
}
} catch { }
return 0;
}
}