file size prop
This commit is contained in:
parent
c300b6102f
commit
ebedf215d2
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue