fix: clicking Applications header navigates back to all apps
When the Applications section is already expanded, clicking the
header now navigates to /{tab} (all applications) instead of
collapsing. When collapsed, clicking expands as before.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -327,11 +327,14 @@ function LayoutContent() {
|
|||||||
navigate('/exchanges');
|
navigate('/exchanges');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setAppsOpen((prev) => {
|
if (appsOpen) {
|
||||||
writeCollapsed(SK_APPS, !prev);
|
// Already open — navigate to all applications
|
||||||
return !prev;
|
navigate(`/${scope.tab}`);
|
||||||
});
|
} else {
|
||||||
}, [isAdminPage, navigate]);
|
setAppsOpen(true);
|
||||||
|
writeCollapsed(SK_APPS, true);
|
||||||
|
}
|
||||||
|
}, [isAdminPage, appsOpen, navigate, scope.tab]);
|
||||||
|
|
||||||
const toggleAdmin = useCallback(() => {
|
const toggleAdmin = useCallback(() => {
|
||||||
if (!isAdminPage) {
|
if (!isAdminPage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user