{#if isSelected(element)}
diff --git a/plugins/tags-resources/src/components/TagsPopup.svelte b/plugins/tags-resources/src/components/TagsPopup.svelte
index e414bc7714..0e266bce96 100644
--- a/plugins/tags-resources/src/components/TagsPopup.svelte
+++ b/plugins/tags-resources/src/components/TagsPopup.svelte
@@ -169,7 +169,7 @@
}}
>
-
{element.title}
+
{element.title}
({element.refCount ?? 0})
diff --git a/plugins/view-resources/src/components/navigator/NavLink.svelte b/plugins/view-resources/src/components/navigator/NavLink.svelte
index 4f776202aa..8ffeb5e375 100644
--- a/plugins/view-resources/src/components/navigator/NavLink.svelte
+++ b/plugins/view-resources/src/components/navigator/NavLink.svelte
@@ -20,6 +20,7 @@
export let space: string | undefined = undefined
export let special: string | undefined = undefined
export let disabled = false
+ export let shrink: number | undefined = undefined
$: loc = createLocation($location, app, space, special)
@@ -60,7 +61,7 @@
{#if disabled}
{:else}
-
+
{/if}
diff --git a/plugins/workbench-resources/src/components/AccountPopup.svelte b/plugins/workbench-resources/src/components/AccountPopup.svelte
index 96bfe95c2e..f22e8da731 100644
--- a/plugins/workbench-resources/src/components/AccountPopup.svelte
+++ b/plugins/workbench-resources/src/components/AccountPopup.svelte
@@ -31,14 +31,12 @@
getCurrentResolvedLocation,
locationToUrl,
navigate,
- resolvedLocationStore,
setMetadataLocalStorage,
showPopup
} from '@hcengineering/ui'
import view from '@hcengineering/view'
import workbench from '../plugin'
import HelpAndSupport from './HelpAndSupport.svelte'
- import SelectWorkspaceMenu from './SelectWorkspaceMenu.svelte'
let items: SettingsCategory[] = []
@@ -67,12 +65,12 @@
{ limit: 1 }
)
- function selectCategory (sp: SettingsCategory): void {
+ function selectCategory (sp?: SettingsCategory): void {
closePopup()
closePanel()
const loc = getCurrentResolvedLocation()
loc.path[2] = settingId
- loc.path[3] = sp.name
+ if (sp) loc.path[3] = sp.name
loc.path.length = 4
navigate(loc)
}
@@ -135,23 +133,13 @@
let actions: Action[] = []
$: {
actions = []
- const subActions: Action[] = getMenu(items, ['settings', 'settings-editor'])
actions.push({
icon: view.icon.Setting,
label: setting.string.Settings,
- action: async () => {},
- component: Menu,
- props: { actions: subActions }
+ action: async () => selectCategory()
})
actions.push(
...getMenu(items, ['main']),
- {
- icon: setting.icon.SelectWorkspace,
- label: setting.string.SelectWorkspace,
- action: async () => {},
- component: SelectWorkspaceMenu,
- group: 'end'
- },
{
icon: login.icon.InviteWorkspace,
label: setting.string.InviteWorkspace,
@@ -179,9 +167,8 @@
- {$resolvedLocationStore.path[1]}
+
diff --git a/plugins/workbench-resources/src/components/Applications.svelte b/plugins/workbench-resources/src/components/Applications.svelte
index 0a0fc21f49..74f5b77f0a 100644
--- a/plugins/workbench-resources/src/components/Applications.svelte
+++ b/plugins/workbench-resources/src/components/Applications.svelte
@@ -47,7 +47,7 @@
buttons={'union'}
>
{#each apps.filter((it) => (shown ? true : !hiddenAppsIds.includes(it._id))) as app}
-