From 378949d59f6d6682fcc80ee250bbedeca0a43a27 Mon Sep 17 00:00:00 2001 From: JulienM Date: Fri, 13 Oct 2023 14:15:00 +0200 Subject: [PATCH 1/2] Feat: remove obsollete instances links --- src/app/js/admin/Appbar/Menu.js | 59 --------------------------------- 1 file changed, 59 deletions(-) diff --git a/src/app/js/admin/Appbar/Menu.js b/src/app/js/admin/Appbar/Menu.js index 9a47dfe2a..aed11594c 100644 --- a/src/app/js/admin/Appbar/Menu.js +++ b/src/app/js/admin/Appbar/Menu.js @@ -109,10 +109,6 @@ const MenuComponent = ({ setSubMenuToShow('advanced'); }; - const handleOpenTenantMenu = () => { - setSubMenuToShow('tenant'); - }; - const handleCloseSubMenu = () => { setSubMenuToShow(null); }; @@ -134,10 +130,6 @@ const MenuComponent = ({ } }; - function setTenant(tenant) { - window.location.href = `/instance/${tenant}/admin`; - } - const modelMenuItems = [
, ]; - const instanceMenuItems = [ - handleCloseMenu(() => setTenant('default'))} - > - - - Default - - , - handleCloseMenu(() => setTenant('instance_one'))} - > - - - Instance 1 - - , - handleCloseMenu(() => setTenant('instance_two'))} - > - - - Instance 2 - - , - handleCloseMenu(() => setTenant('instance_three'))} - > - - - Instance 3 - - , - ]; - return ( <> - - - {instanceMenuItems} - - Date: Fri, 13 Oct 2023 14:25:27 +0200 Subject: [PATCH 2/2] Feat: clean menu --- src/app/js/admin/Appbar/Menu.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/app/js/admin/Appbar/Menu.js b/src/app/js/admin/Appbar/Menu.js index aed11594c..c0bb44d8b 100644 --- a/src/app/js/admin/Appbar/Menu.js +++ b/src/app/js/admin/Appbar/Menu.js @@ -326,24 +326,6 @@ const MenuComponent = ({ - - - - Instances - - - - handleCloseMenu(onSignOut)}