Fix active navigation tab + quick workflows fixes (#8567)
- Active navigation tab hovered in show page
- remove timeline tab + rename workflow tab
- remove {{variable}} placeholder
- fix margin
- Workflow Runs and Versions show page title
<img width="807" alt="Capture d’écran 2024-11-18 à 18 23 12"
src="https://github.com/user-attachments/assets/688dfc67-362e-4f04-b436-3ff94d7e3e4a">
This commit is contained in:
@ -14,17 +14,22 @@ export const NavigationDrawerOpenedSection = () => {
|
||||
|
||||
const loading = useIsPrefetchLoading();
|
||||
|
||||
const currentObjectNamePlural = useParams().objectNamePlural;
|
||||
|
||||
const { activeObjectMetadataItems: workspaceFavoritesObjectMetadataItems } =
|
||||
useFilteredObjectMetadataItemsForWorkspaceFavorites();
|
||||
|
||||
if (!currentObjectNamePlural) {
|
||||
const {
|
||||
objectNamePlural: currentObjectNamePlural,
|
||||
objectNameSingular: currentObjectNameSingular,
|
||||
} = useParams();
|
||||
|
||||
if (!currentObjectNamePlural && !currentObjectNameSingular) {
|
||||
return;
|
||||
}
|
||||
|
||||
const objectMetadataItem = filteredActiveObjectMetadataItems.find(
|
||||
(item) => item.namePlural === currentObjectNamePlural,
|
||||
(item) =>
|
||||
item.namePlural === currentObjectNamePlural ||
|
||||
item.nameSingular === currentObjectNameSingular,
|
||||
);
|
||||
|
||||
if (!objectMetadataItem) {
|
||||
|
||||
Reference in New Issue
Block a user