created_at swagger
This commit is contained in:
@@ -58,9 +58,8 @@ export const describeDocumentSummary = (document, options = {}) => {
|
||||
originalName: '',
|
||||
mimeTypeLabel: '—',
|
||||
sizeLabel: '—',
|
||||
uploadedAtLabel: '—',
|
||||
issuedAtLabel: '—',
|
||||
createdAtLabel: '—',
|
||||
issuedAtLabel: '—',
|
||||
updatedAtLabel: '—',
|
||||
pageCount: null,
|
||||
pageCountLabel: '—',
|
||||
@@ -88,9 +87,8 @@ export const describeDocumentSummary = (document, options = {}) => {
|
||||
const pageCount = coercePageCount(metadata);
|
||||
const pageCountLabel = Number.isFinite(pageCount) ? String(pageCount) : '—';
|
||||
|
||||
const uploadedAtLabel = formatDateTime(document.uploaded_at);
|
||||
const issuedAtLabel = formatDateTime(document.issued_at);
|
||||
const createdAtLabel = formatDateTime(document.created_at);
|
||||
const issuedAtLabel = formatDateTime(document.issued_at);
|
||||
const updatedAtLabel = formatDateTime(document.updated_at);
|
||||
|
||||
const folderLabel = document.folder_path || document.folder_name || null;
|
||||
@@ -107,12 +105,11 @@ export const describeDocumentSummary = (document, options = {}) => {
|
||||
: '—';
|
||||
|
||||
const summaryRows = [
|
||||
{ key: 'uploaded', label: 'Uploaded', value: uploadedAtLabel },
|
||||
{ key: 'created', label: 'Created', value: createdAtLabel },
|
||||
{ key: 'size', label: 'Size', value: sizeLabel },
|
||||
{ key: 'type', label: 'Type', value: mimeTypeLabel },
|
||||
{ key: 'issued', label: 'Issued', value: issuedAtLabel },
|
||||
{ key: 'pages', label: 'Pages', value: pageCountLabel },
|
||||
{ key: 'created', label: 'Created', value: createdAtLabel },
|
||||
{ key: 'updated', label: 'Updated', value: updatedAtLabel },
|
||||
{ key: 'folder', label: 'Folder', value: folderLabel || '—' },
|
||||
{ key: 'tags', label: 'Tags', value: tagsSummary },
|
||||
@@ -124,9 +121,8 @@ export const describeDocumentSummary = (document, options = {}) => {
|
||||
originalName,
|
||||
mimeTypeLabel,
|
||||
sizeLabel,
|
||||
uploadedAtLabel,
|
||||
issuedAtLabel,
|
||||
createdAtLabel,
|
||||
issuedAtLabel,
|
||||
updatedAtLabel,
|
||||
pageCount,
|
||||
pageCountLabel,
|
||||
|
||||
Reference in New Issue
Block a user