admin user and ui panel
This commit is contained in:
@@ -87,9 +87,16 @@ router.afterEach((to) => {
|
||||
transition.setTransitionFlag(true);
|
||||
}, 100);
|
||||
|
||||
// Unconditional on both branches: this hook is the single source of truth for
|
||||
// tab-bar visibility. A screen may hide the bar for its own reasons while it
|
||||
// is open (SearchView does, for its filter sheet), and this is what clears
|
||||
// that override on the way out — the old `if (!nav.showNav)` guard made the
|
||||
// same write, just phrased as if something else might own the flag.
|
||||
const route = nav.navBarRoutes.find((x) => to.name === x.name);
|
||||
if (route) {
|
||||
nav.setActiveLink(route.index);
|
||||
if (!nav.showNav) nav.setNavVisibility(true);
|
||||
} else nav.setNavVisibility(false);
|
||||
nav.setNavVisibility(true);
|
||||
} else {
|
||||
nav.setNavVisibility(false);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user