mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix: table loader (#5937)
This commit is contained in:
parent
86b5f108d0
commit
567099a15b
@ -64,7 +64,7 @@ export const Project = () => {
|
|||||||
const projectId = useRequiredPathParam('projectId');
|
const projectId = useRequiredPathParam('projectId');
|
||||||
const params = useQueryParams();
|
const params = useQueryParams();
|
||||||
const { project, loading, error, refetch } = useProject(projectId);
|
const { project, loading, error, refetch } = useProject(projectId);
|
||||||
const ref = useLoading(loading);
|
const ref = useLoading(loading, '[data-loading-project=true]');
|
||||||
const { setToastData, setToastApiError } = useToast();
|
const { setToastData, setToastApiError } = useToast();
|
||||||
const [modalOpen, setModalOpen] = useState(false);
|
const [modalOpen, setModalOpen] = useState(false);
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -193,7 +193,7 @@ export const Project = () => {
|
|||||||
condition={project?.mode === 'private'}
|
condition={project?.mode === 'private'}
|
||||||
show={<HiddenProjectIconWithTooltip />}
|
show={<HiddenProjectIconWithTooltip />}
|
||||||
/>
|
/>
|
||||||
<StyledName data-loading>
|
<StyledName data-loading-project>
|
||||||
{projectName}
|
{projectName}
|
||||||
</StyledName>
|
</StyledName>
|
||||||
</StyledProjectTitle>
|
</StyledProjectTitle>
|
||||||
@ -210,7 +210,7 @@ export const Project = () => {
|
|||||||
onClick={() => setModalOpen(true)}
|
onClick={() => setModalOpen(true)}
|
||||||
tooltipProps={{ title: 'Import' }}
|
tooltipProps={{ title: 'Import' }}
|
||||||
data-testid={IMPORT_BUTTON}
|
data-testid={IMPORT_BUTTON}
|
||||||
data-loading
|
data-loading-project
|
||||||
>
|
>
|
||||||
<FileUpload />
|
<FileUpload />
|
||||||
</PermissionIconButton>
|
</PermissionIconButton>
|
||||||
@ -232,7 +232,7 @@ export const Project = () => {
|
|||||||
{filteredTabs.map((tab) => {
|
{filteredTabs.map((tab) => {
|
||||||
return (
|
return (
|
||||||
<StyledTab
|
<StyledTab
|
||||||
data-loading
|
data-loading-project
|
||||||
key={tab.title}
|
key={tab.title}
|
||||||
label={tab.title}
|
label={tab.title}
|
||||||
value={tab.path}
|
value={tab.path}
|
||||||
|
Loading…
Reference in New Issue
Block a user