mirror of
https://github.com/Qortal/qapp-core.git
synced 2025-06-14 17:41:20 +00:00
fixes
This commit is contained in:
parent
6fbffcbb50
commit
994ac1e5bf
@ -183,5 +183,15 @@ export const useResourceStatus = ({
|
||||
resource?.service,
|
||||
downloadResource,
|
||||
]);
|
||||
return !status ? null : {...(status || {}), isReady: status?.status === 'READY'};
|
||||
|
||||
const resourceUrl = resource ? `/arbitrary/${resource.service}/${resource.name}/${resource.identifier}` : null;
|
||||
|
||||
return {
|
||||
status: status?.status || "SEARCHING",
|
||||
localChunkCount: status?.localChunkCount || 0,
|
||||
totalChunkCount: status?.totalChunkCount || 0,
|
||||
percentLoaded: status?.percentLoaded || 0,
|
||||
isReady: status?.status === 'READY',
|
||||
resourceUrl,
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user