mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
file size prop
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user