From 73096b4e73b3348918c8d3685a066d4fa81dbd47 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 3 Dec 2024 11:56:40 -0500 Subject: [PATCH] Only allow moving activity bar icons when editing the bar. Add small visual indicator that they can be moved. --- .../src/components/ActivityBar/ActivityBar.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/client/src/components/ActivityBar/ActivityBar.vue b/client/src/components/ActivityBar/ActivityBar.vue index 5371d14f84fe..aee942c40ee9 100644 --- a/client/src/components/ActivityBar/ActivityBar.vue +++ b/client/src/components/ActivityBar/ActivityBar.vue @@ -189,6 +189,10 @@ function setActiveSideBar(key: string) { activityStore.toggledSideBar = key; } +const canDrag = computed(() => { + return isActiveSideBar("settings"); +}); + defineExpose({ isActiveSideBar, setActiveSideBar, @@ -209,6 +213,7 @@ defineExpose({ -
+