UBER-1116: saving sidebar changes (#3919)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2023-10-31 16:21:29 +07:00
committed by GitHub
parent f4a5c6de1b
commit 7382bf8ffb
10 changed files with 44 additions and 112 deletions
@@ -203,7 +203,12 @@
</script>
{#if shown}
<TreeNode label={view.string.FilteredViews} node actions={async () => getActions(availableFilteredViews)}>
<TreeNode
_id={'tree-saved'}
label={view.string.FilteredViews}
node
actions={async () => getActions(availableFilteredViews)}
>
{#each myFilteredViews as fv}
<TreeItem
_id={fv._id}
@@ -142,7 +142,7 @@
}
</script>
<TreeNode label={model.label} node actions={async () => getParentActions()}>
<TreeNode _id={'tree-' + model.id} label={model.label} node actions={async () => getParentActions()}>
{#each filteredSpaces as space, i (space._id)}
{#await getSpacePresenter(client, space._class) then presenter}
{#if separate && model.specials && i !== 0}<TreeSeparator line />{/if}
@@ -89,7 +89,7 @@
}
</script>
<TreeNode {label} node actions={async () => [unStarAll]}>
<TreeNode _id={'tree-stared'} {label} node actions={async () => [unStarAll]}>
{#each spaces as space (space._id)}
{@const model = models.find((p) => p.spaceClass === space._class)}
{#await getSpacePresenter(client, space._class) then presenter}