Skip to content

Commit 6cbec27

Browse files
committed
feat(web-media): add online property to serialized FileInfo
1 parent d7257bc commit 6cbec27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/web-media/src/lib/data-info/file-info.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ export class FileInfo extends DataInfo {
237237
object.size,
238238
file,
239239
);
240+
result.online = object.online ?? false;
240241
result.attributes = object.attributes;
241242
result.url = object.url;
242243
result.hash = object.hash;
@@ -280,6 +281,7 @@ export class FileInfo extends DataInfo {
280281
type: this.type,
281282
url: this.url,
282283
attributes: this.attributes,
284+
online: this.online,
283285
content: '',
284286
hash: this.hash,
285287
};
@@ -336,6 +338,7 @@ export interface FileInfoSerialized {
336338
size: number;
337339
type: string;
338340
url?: string;
341+
online?: boolean;
339342
attributes?: any;
340343
content?: string;
341344
hash?: string;

0 commit comments

Comments
 (0)