From 3d37ac6471084718c6cae38f7962aee53e2c128e Mon Sep 17 00:00:00 2001 From: Ruslan Bayandinov <45530296+wazsone@users.noreply.github.com> Date: Tue, 16 May 2023 18:43:25 +0700 Subject: [PATCH] [UBER-55] Remember collapsed projects (#3194) Signed-off-by: Ruslan Bayandinov --- .../src/components/projects/ProjectSpacePresenter.svelte | 9 ++++++++- .../src/components/navigator/TreeNode.svelte | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/tracker-resources/src/components/projects/ProjectSpacePresenter.svelte b/plugins/tracker-resources/src/components/projects/ProjectSpacePresenter.svelte index ab99e75ff4..184358f207 100644 --- a/plugins/tracker-resources/src/components/projects/ProjectSpacePresenter.svelte +++ b/plugins/tracker-resources/src/components/projects/ProjectSpacePresenter.svelte @@ -15,7 +15,7 @@ {#if model.specials} getActions(space)} + on:click={() => localStorage.setItem(getSpaceCollapsedKey(), collapsed ? '' : COLLAPSED)} > {#each model.specials as special} diff --git a/plugins/view-resources/src/components/navigator/TreeNode.svelte b/plugins/view-resources/src/components/navigator/TreeNode.svelte index 02ae1d1327..f4624d2e94 100644 --- a/plugins/view-resources/src/components/navigator/TreeNode.svelte +++ b/plugins/view-resources/src/components/navigator/TreeNode.svelte @@ -41,6 +41,7 @@ {parent} {indent} {shortDropbox} + on:click >