1
0
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


![image](https://github.com/user-attachments/assets/885b44f8-ac74-44cf-b5ff-760f9384b05e)
This commit is contained in:
Jaanus Sellin 2024-10-31 13:28:28 +02:00 committed by GitHub
parent 61bd3972ba
commit 2934f85743
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 />