mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
file size prop
This commit is contained in:
@@ -21,4 +21,13 @@ export class AttachmentView implements View {
|
|||||||
this.size = a.size;
|
this.size = a.size;
|
||||||
this.sizeName = a.sizeName;
|
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