From 46028aaf105b3e1df27ac6126e2723f9e2e780d6 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Wed, 3 Nov 2021 15:38:50 +0100 Subject: [PATCH] universal space panel Signed-off-by: Andrey Platov --- .../components/navigator/SpacePanel.svelte | 180 ++++++++++++++++++ .../src/components/navigator/SpacesNav.svelte | 3 +- 2 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 plugins/workbench-resources/src/components/navigator/SpacePanel.svelte diff --git a/plugins/workbench-resources/src/components/navigator/SpacePanel.svelte b/plugins/workbench-resources/src/components/navigator/SpacePanel.svelte new file mode 100644 index 0000000000..1e7e4580ca --- /dev/null +++ b/plugins/workbench-resources/src/components/navigator/SpacePanel.svelte @@ -0,0 +1,180 @@ + + + + +
{ dispatch('close') }}/> +
+
+ +
+
{ dispatch('close') }}>
+
+
+ Subtitle +
+
+ {#each tabs as tab, i} +
{ selected = i }}> +
+ {/each} +
+
+
+
+ {#if selected === 0} + {#if space} + + + + + {/if} + {:else} + Members and other + {/if} +
+
+
+ + \ No newline at end of file diff --git a/plugins/workbench-resources/src/components/navigator/SpacesNav.svelte b/plugins/workbench-resources/src/components/navigator/SpacesNav.svelte index 1a688d153d..8d4775a800 100644 --- a/plugins/workbench-resources/src/components/navigator/SpacesNav.svelte +++ b/plugins/workbench-resources/src/components/navigator/SpacesNav.svelte @@ -30,6 +30,7 @@ import TreeItem from './TreeItem.svelte' import EditStatuses from '../EditStatuses.svelte' + import SpacePanel from './SpacePanel.svelte' export let model: SpacesNavModel @@ -60,7 +61,7 @@ label: 'Open' as IntlString, icon: IconEdit, action: async (_id: Ref): Promise => { - showPopup(model.editComponent!, { _id, spaceClass: model.spaceClass }, 'right') + showPopup(SpacePanel, { _id, spaceClass: model.spaceClass }, 'right') } }