1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-14 00:15:52 +01: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 projectName = project?.name || projectId;
const { favorite, unfavorite } = useFavoriteProjectsApi();
const useActionableChangeRequestIndicator = useUiFlag(
'simplifyProjectOverview',
);
const simplifyProjectOverview = useUiFlag('simplifyProjectOverview');
const [showDelDialog, setShowDelDialog] = useState(false);
@ -148,11 +146,15 @@ export const Project = () => {
path: `${basePath}/health`,
name: 'health',
},
...(simplifyProjectOverview
? []
: [
{
title: 'Archived flags',
path: `${basePath}/archive`,
name: 'archive',
},
} as ITab,
]),
{
title: 'Change requests',
path: `${basePath}/change-requests`,
@ -327,7 +329,7 @@ export const Project = () => {
</span>
}
/>
{useActionableChangeRequestIndicator &&
{simplifyProjectOverview &&
tab.name ===
'change-request' && (
<ActionableChangeRequestsIndicator />