file size prop

This commit is contained in:
Kyle Spearrin 2019-05-01 10:35:52 -04:00
parent c300b6102f
commit ebedf215d2
1 changed files with 9 additions and 0 deletions

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;
}
}