Update list-binary.component.ts (#280)

Co-authored-by: Jason Kulatunga <jason@thesparktree.com>
This commit is contained in:
OhHeyAlan 2023-10-16 11:24:25 -05:00 committed by GitHub
parent 79c3e85485
commit ef68bfcc56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ import {attributeXTime} from './utils';
export class ListBinaryComponent extends ListGenericResourceComponent { export class ListBinaryComponent extends ListGenericResourceComponent {
columnDefinitions: GenericColumnDefn[] = [ columnDefinitions: GenericColumnDefn[] = [
{ title: 'Content-Type', versions: '*', getter: c => c.contentType }, { title: 'Content-Type', versions: '*', getter: c => c.contentType },
{ title: 'ID', versions: '*', getter: c => c.id },
{ title: 'Last Updated', versions: '*', getter: c => c.meta?.lastUpdated },
{ title: 'Size', versions: '*', getter: c => Math.floor((c.data?.length *4 +2)/3) } { title: 'Size', versions: '*', getter: c => Math.floor((c.data?.length *4 +2)/3) }
] ]
} }