Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a refresh interval to the origin exports #1792

Merged
merged 6 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web_ui/frontend/components/DataExportTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export const getExportData = async (): Promise<ExportRes> => {
const generateEditUrl = (editUrl: string, fromUrl: string) => {
try {
let updatedFromUrl = new URL(fromUrl)
if(!('from_registry' in updatedFromUrl.searchParams)) {
if(updatedFromUrl.searchParams.get('from_registry') === null) {
updatedFromUrl.searchParams.append('from_registry', 'true')
}
const url = new URL(editUrl);
Expand Down Expand Up @@ -413,7 +413,7 @@ export const DataExportTable = ({ boxProps }: { boxProps?: BoxProps }) => {
{from_registry && pending &&
<Box display={"flex"} flexDirection={"column"}>
<LinearProgress sx={{mb:1, w: "100%"}} />
<Typography variant={'subtitle2'} color={grey[400]} mx={"auto"}>Checking Registry for Updates</Typography>
<Typography variant={'subtitle2'} color={grey[400]} mx={"auto"}>Starting Update Watcher; Will Poll Every 10 Seconds;</Typography>
CannonLock marked this conversation as resolved.
Show resolved Hide resolved
</Box>
}
<Typography pb={1} variant={'h5'} component={'h3'}>
Expand Down