// Links Resources
const renderLinkName = (item: { name: string }) =>
- <Typography noWrap>{item.name || '(none)'}</Typography>;
+ <Typography noWrap>{item.name || '-'}</Typography>;
export const ResourceLinkName = connect(
(state: RootState, props: { uuid: string }) => {
const resource = getResource<CollectionResource>(props.uuid)(state.resources);
return { uuid: resource ? resource.uuid : '' };
})((props: { uuid: string }) => renderUuid({uuid: props.uuid}));
+
+const renderVersion = (version: number) =>{
+ return <Typography>{version ?? '-'}</Typography>
+}
+
+export const ResourceVersion = connect(
+ (state: RootState, props: { uuid: string }) => {
+ const resource = getResource<CollectionResource>(props.uuid)(state.resources);
+ return { version: resource ? resource.version: '' };
+ })((props: { version: number }) => renderVersion(props.version));
const renderPortableDataHash = (portableDataHash:string | null) =>
<Typography noWrap>
return { portableDataHash: resource ? resource.portableDataHash : '' };
})((props: { portableDataHash: string }) => renderPortableDataHash(props.portableDataHash));
-const renderVersion = (version: number) =>{
- return <Typography>{version ?? '-'}</Typography>
-}
-
-export const ResourceVersion = connect(
- (state: RootState, props: { uuid: string }) => {
- const resource = getResource<CollectionResource>(props.uuid)(state.resources);
- return { version: resource ? resource.version: '' };
- })((props: { version: number }) => renderVersion(props.version));
const renderFileCount = (fileCount: number) =>{
return <Typography>{fileCount ?? '-'}</Typography>
ProcessStatus as ResourceStatus,
ResourceType,
ResourceOwnerWithName,
- ResourceVersion,
+ ResourcePortableDataHash,
ResourceFileSize,
ResourceFileCount,
ResourceUUID,
ResourceLogUuid,
ResourceParentProcess,
ResourceModifiedByUserUuid,
- ResourcePortableDataHash,
+ ResourceVersion,
ResourceCreatedAtDate,
ResourceLastModifiedDate,
ResourceTrashDate,
STATUS = "Status",
TYPE = "Type",
OWNER = "Owner",
- VERSION = "Version",
- FILE_SIZE = "File size",
- FILE_COUNT = "File count",
+ PORTABLE_DATA_HASH = "Portable Data Hash",
+ FILE_SIZE = "File Size",
+ FILE_COUNT = "File Count",
UUID = "UUID",
CONTAINER_UUID = "Container UUID",
OUTPUT_UUID = "Output UUID",
LOG_UUID = "Log UUID",
- PARENT_PROCESS = 'Parent process UUID',
+ PARENT_PROCESS = 'Parent Process UUID',
MODIFIED_BY_USER_UUID = 'Modified by User UUID',
- PORTABLE_DATA_HASH = "Portable data hash",
- CREATED_AT = "Date created",
- LAST_MODIFIED = "Last modified",
+ VERSION = "Version",
+ CREATED_AT = "Date Created",
+ LAST_MODIFIED = "Last Modified",
TRASH_AT = "Trash at",
DELETE_AT = "Delete at",
}
render: uuid => <ResourceOwnerWithName uuid={uuid} />
},
{
- name: ProjectPanelColumnNames.VERSION,
+ name: ProjectPanelColumnNames.PORTABLE_DATA_HASH,
selected: false,
configurable: true,
filters: createTree(),
- render: uuid =><ResourceVersion uuid={uuid}/>
+ render: uuid => <ResourcePortableDataHash uuid={uuid}/>
},
{
name: ProjectPanelColumnNames.FILE_SIZE,
render: uuid => <ResourceModifiedByUserUuid uuid={uuid}/>
},
{
- name: ProjectPanelColumnNames.PORTABLE_DATA_HASH,
+ name: ProjectPanelColumnNames.VERSION,
selected: false,
configurable: true,
filters: createTree(),
- render: uuid => <ResourcePortableDataHash uuid={uuid}/>
+ render: uuid =><ResourceVersion uuid={uuid}/>
},
{
name: ProjectPanelColumnNames.CREATED_AT,