mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
feat: hide archive tab when simplify enabled (#8611)
No archive anymore 
This commit is contained in:
parent
61bd3972ba
commit
2934f85743
@ -121,9 +121,7 @@ export const Project = () => {
|
|||||||
const basePath = `/projects/${projectId}`;
|
const basePath = `/projects/${projectId}`;
|
||||||
const projectName = project?.name || projectId;
|
const projectName = project?.name || projectId;
|
||||||
const { favorite, unfavorite } = useFavoriteProjectsApi();
|
const { favorite, unfavorite } = useFavoriteProjectsApi();
|
||||||
const useActionableChangeRequestIndicator = useUiFlag(
|
const simplifyProjectOverview = useUiFlag('simplifyProjectOverview');
|
||||||
'simplifyProjectOverview',
|
|
||||||
);
|
|
||||||
|
|
||||||
const [showDelDialog, setShowDelDialog] = useState(false);
|
const [showDelDialog, setShowDelDialog] = useState(false);
|
||||||
|
|
||||||
@ -148,11 +146,15 @@ export const Project = () => {
|
|||||||
path: `${basePath}/health`,
|
path: `${basePath}/health`,
|
||||||
name: 'health',
|
name: 'health',
|
||||||
},
|
},
|
||||||
{
|
...(simplifyProjectOverview
|
||||||
title: 'Archived flags',
|
? []
|
||||||
path: `${basePath}/archive`,
|
: [
|
||||||
name: 'archive',
|
{
|
||||||
},
|
title: 'Archived flags',
|
||||||
|
path: `${basePath}/archive`,
|
||||||
|
name: 'archive',
|
||||||
|
} as ITab,
|
||||||
|
]),
|
||||||
{
|
{
|
||||||
title: 'Change requests',
|
title: 'Change requests',
|
||||||
path: `${basePath}/change-requests`,
|
path: `${basePath}/change-requests`,
|
||||||
@ -327,7 +329,7 @@ export const Project = () => {
|
|||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{useActionableChangeRequestIndicator &&
|
{simplifyProjectOverview &&
|
||||||
tab.name ===
|
tab.name ===
|
||||||
'change-request' && (
|
'change-request' && (
|
||||||
<ActionableChangeRequestsIndicator />
|
<ActionableChangeRequestsIndicator />
|
||||||
|
Loading…
Reference in New Issue
Block a user