diff --git a/plugins/preference-assets/lang/en.json b/plugins/preference-assets/lang/en.json index 3643c7f689..086f2e8c90 100644 --- a/plugins/preference-assets/lang/en.json +++ b/plugins/preference-assets/lang/en.json @@ -1,6 +1,5 @@ { "string": { - "DeleteStarred": "Delete starred", "Starred": "Starred", "Star": "Star", "Unstar": "Unstar" diff --git a/plugins/preference-assets/lang/es.json b/plugins/preference-assets/lang/es.json index e93769eeeb..eb8d1ef7ed 100644 --- a/plugins/preference-assets/lang/es.json +++ b/plugins/preference-assets/lang/es.json @@ -1,6 +1,5 @@ { "string": { - "DeleteStarred": "Eliminar destacados", "Starred": "Destacados", "Star": "Destacar", "Unstar": "Eliminar destaque" diff --git a/plugins/preference-assets/lang/pt.json b/plugins/preference-assets/lang/pt.json index 42d18e595f..434b7c2fed 100644 --- a/plugins/preference-assets/lang/pt.json +++ b/plugins/preference-assets/lang/pt.json @@ -1,6 +1,5 @@ { "string": { - "DeleteStarred": "Remover destacados", "Starred": "Destacados", "Star": "Destacar", "Unstar": "Remover destaque" diff --git a/plugins/preference-assets/lang/ru.json b/plugins/preference-assets/lang/ru.json index cd3257151a..ef3cf3b4ae 100644 --- a/plugins/preference-assets/lang/ru.json +++ b/plugins/preference-assets/lang/ru.json @@ -1,6 +1,5 @@ { "string": { - "DeleteStarred": "Удалить закладки", "Starred": "Закладки", "Star": "Добавить в закладки", "Unstar": "Удалить из закладок" diff --git a/plugins/preference/src/index.ts b/plugins/preference/src/index.ts index f827b4645b..bdec48ba29 100644 --- a/plugins/preference/src/index.ts +++ b/plugins/preference/src/index.ts @@ -56,7 +56,6 @@ const preference = plugin(preferenceId, { Star: '' as Asset }, string: { - DeleteStarred: '' as IntlString, Starred: '' as IntlString, Star: '' as IntlString, Unstar: '' as IntlString diff --git a/plugins/workbench-resources/src/components/navigator/StarredNav.svelte b/plugins/workbench-resources/src/components/navigator/StarredNav.svelte index 0be2d63171..8d7f483343 100644 --- a/plugins/workbench-resources/src/components/navigator/StarredNav.svelte +++ b/plugins/workbench-resources/src/components/navigator/StarredNav.svelte @@ -17,10 +17,7 @@ import { DocNotifyContext, InboxNotification } from '@hcengineering/notification' import { InboxNotificationsClientImpl } from '@hcengineering/notification-resources' import { IntlString } from '@hcengineering/platform' - import preference from '@hcengineering/preference' import { getClient } from '@hcengineering/presentation' - import { Action } from '@hcengineering/ui' - import view from '@hcengineering/view' import { TreeNode } from '@hcengineering/view-resources' import { SpacesNavModel } from '@hcengineering/workbench' import StarredNavItem from './StarredNavItem.svelte' @@ -35,21 +32,6 @@ const client = getClient() - const unStarAll: Action = { - label: preference.string.DeleteStarred, - icon: view.icon.Delete, - action: async (): Promise<void> => { - const ids = spaces.map((space) => space._id) - const current = await client.findAll(preference.class.SpacePreference, { attachedTo: { $in: ids } }) - - await Promise.all( - current.map(async (item) => { - await client.remove(item) - }) - ) - } - } - function getSpaceModel (space: Ref<Class<Space>>): SpacesNavModel | undefined { const hierarchy = client.getHierarchy() const ancestors = [space, ...[...hierarchy.getAncestors(space)].reverse()] @@ -79,7 +61,6 @@ <TreeNode _id={'tree-stared'} {label} - actions={async () => [unStarAll]} highlighted={spaces.some((s) => s._id === currentSpace) && !deselect} isFold empty={spaces.length === 0}