mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-25 04:17:52 +00:00
fix fetch resource
This commit is contained in:
parent
9fd224cccf
commit
995f29a8f1
@ -138,6 +138,16 @@ export const useFetchResources = () => {
|
||||
},
|
||||
}));
|
||||
}
|
||||
if(res?.status === 'DOWNLOADED'){
|
||||
const url = `${getBaseApiReact()}/arbitrary/resource/status/${service}/${name}/${identifier}?build=true`;
|
||||
const resCall = await fetch(url, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
res = await resCall.json();
|
||||
}
|
||||
}
|
||||
callFunction()
|
||||
intervalId.current = setInterval(async () => {
|
||||
|
@ -969,7 +969,8 @@ const clearEditorContent = () => {
|
||||
<AppViewerContainer customHeight="560px" app={{
|
||||
tabId: '5558588',
|
||||
name: 'Q-Manager',
|
||||
service: 'APP'
|
||||
service: 'APP',
|
||||
path: `?groupId=${selectedGroup}`
|
||||
}} isSelected />
|
||||
</Box>
|
||||
</Box>
|
||||
|
@ -263,7 +263,7 @@ export const AttachmentCard = ({
|
||||
}}>
|
||||
|
||||
<FileAttachmentContainer >
|
||||
<Typography>{resourceDetails?.status?.status}</Typography>
|
||||
<Typography>{resourceDetails?.status?.status === 'DOWNLOADED' ? 'BUILDING' : resourceDetails?.status?.status}</Typography>
|
||||
{!resourceDetails && (
|
||||
<>
|
||||
<DownloadIcon />
|
||||
|
@ -440,7 +440,6 @@ export const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
||||
}
|
||||
}
|
||||
|
||||
console.log('resourceStatus', resourceStatus)
|
||||
|
||||
return (
|
||||
<VideoContainer
|
||||
|
Loading…
x
Reference in New Issue
Block a user