From 2338b74d6634cb1547dcf327e09d1aba727a63a5 Mon Sep 17 00:00:00 2001 From: Forrest Date: Mon, 13 Feb 2023 12:33:16 -0500 Subject: [PATCH] feat(ModulePanel): hide server tab if no server --- src/components/ModulePanel.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/ModulePanel.vue b/src/components/ModulePanel.vue index 8573f4659..064b70231 100644 --- a/src/components/ModulePanel.vue +++ b/src/components/ModulePanel.vue @@ -57,12 +57,15 @@ export const Modules = [ icon: 'cube', component: RenderingModule, }, - { +]; + +if (process.env.VUE_APP_REMOTE_SERVER_URL) { + Modules.push({ name: 'Remote Functions', icon: 'server-network', component: ServerModule, - }, -]; + }); +} export default defineComponent({ name: 'ModulePanel',