From 8effaea761d26778e1e811b28efd0285255772bb Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 9 Apr 2024 08:43:59 +0300 Subject: [PATCH] Toggle admin activity panel when clicking on admin tab in masthead --- client/src/entry/analysis/menu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/entry/analysis/menu.js b/client/src/entry/analysis/menu.js index 75a5190cf4fb..ec1de4f190af 100644 --- a/client/src/entry/analysis/menu.js +++ b/client/src/entry/analysis/menu.js @@ -2,6 +2,8 @@ import { getGalaxyInstance } from "app"; import _l from "utils/localization"; import { userLogout } from "utils/logout"; +import { useUserStore } from "@/stores/userStore"; + export function fetchMenu(options = {}) { const Galaxy = getGalaxyInstance(); const menu = []; @@ -121,6 +123,10 @@ export function fetchMenu(options = {}) { url: "/admin", tooltip: _l("Administer this Galaxy"), cls: "admin-only", + onclick: () => { + const userStore = useUserStore(); + userStore.toggleSideBar("admin"); + }, }); }