From b7775cb26cb4e5b705faadf9d77a34b1c1ed60d5 Mon Sep 17 00:00:00 2001 From: Eduard Aksamitov Date: Thu, 14 Mar 2024 20:19:23 +0300 Subject: [PATCH] fix: missed invite icon (#4962) Signed-off-by: Eduard Aksamitov --- plugins/login-assets/assets/icons.svg | 7 ---- plugins/login-assets/src/index.ts | 38 ++++++++----------- plugins/setting-assets/assets/icons.svg | 5 +++ plugins/setting-assets/src/index.ts | 3 +- .../src/components/Settings.svelte | 2 +- plugins/setting/src/index.ts | 3 +- .../src/components/AccountPopup.svelte | 2 +- 7 files changed, 26 insertions(+), 34 deletions(-) delete mode 100644 plugins/login-assets/assets/icons.svg diff --git a/plugins/login-assets/assets/icons.svg b/plugins/login-assets/assets/icons.svg deleted file mode 100644 index 0701404f39..0000000000 --- a/plugins/login-assets/assets/icons.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/plugins/login-assets/src/index.ts b/plugins/login-assets/src/index.ts index c3af9c5b91..dd71a1868f 100644 --- a/plugins/login-assets/src/index.ts +++ b/plugins/login-assets/src/index.ts @@ -1,23 +1,15 @@ -// // -// // Copyright © 2020, 2021 Anticrm Platform Contributors. -// // Copyright © 2021 Hardcore Engineering Inc. -// // -// // Licensed under the Eclipse Public License, Version 2.0 (the "License"); -// // you may not use this file except in compliance with the License. You may -// // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 -// // -// // Unless required by applicable law or agreed to in writing, software -// // distributed under the License is distributed on an "AS IS" BASIS, -// // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// // -// // See the License for the specific language governing permissions and -// // limitations under the License. -// // - -// import login from '@hcengineering/login' -// import { loadMetadata } from '@hcengineering/platform' - -// const icons = require('../assets/icons.svg') as string // eslint-disable-line -// loadMetadata(login.icon, { -// InviteWorkspace: `${icons}#inviteWorkspace` -// }) +// +// Copyright © 2020, 2021 Anticrm Platform Contributors. +// Copyright © 2021 Hardcore Engineering Inc. +// +// Licensed under the Eclipse Public License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. You may +// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// diff --git a/plugins/setting-assets/assets/icons.svg b/plugins/setting-assets/assets/icons.svg index 66009eab07..9b9e5d4329 100644 --- a/plugins/setting-assets/assets/icons.svg +++ b/plugins/setting-assets/assets/icons.svg @@ -56,4 +56,9 @@ + + + + + diff --git a/plugins/setting-assets/src/index.ts b/plugins/setting-assets/src/index.ts index e9c921d4d3..bf1da8ade5 100644 --- a/plugins/setting-assets/src/index.ts +++ b/plugins/setting-assets/src/index.ts @@ -30,5 +30,6 @@ loadMetadata(setting.icon, { SelectWorkspace: `${icons}#selectWorkspace`, Clazz: `${icons}#clazz`, Enums: `${icons}#enums`, - InviteSettings: `${icons}#inviteSettings` + InviteSettings: `${icons}#inviteSettings`, + InviteWorkspace: `${icons}#inviteWorkspace` }) diff --git a/plugins/setting-resources/src/components/Settings.svelte b/plugins/setting-resources/src/components/Settings.svelte index e5e4049082..5bb264864e 100644 --- a/plugins/setting-resources/src/components/Settings.svelte +++ b/plugins/setting-resources/src/components/Settings.svelte @@ -168,7 +168,7 @@ on:click={selectWorkspace} /> diff --git a/plugins/setting/src/index.ts b/plugins/setting/src/index.ts index 472d598843..9575f21198 100644 --- a/plugins/setting/src/index.ts +++ b/plugins/setting/src/index.ts @@ -200,7 +200,8 @@ export default plugin(settingId, { SelectWorkspace: '' as Asset, Clazz: '' as Asset, Enums: '' as Asset, - InviteSettings: '' as Asset + InviteSettings: '' as Asset, + InviteWorkspace: '' as Asset }, templateFieldCategory: { Integration: '' as Ref diff --git a/plugins/workbench-resources/src/components/AccountPopup.svelte b/plugins/workbench-resources/src/components/AccountPopup.svelte index cb5db5e4c0..f68577b207 100644 --- a/plugins/workbench-resources/src/components/AccountPopup.svelte +++ b/plugins/workbench-resources/src/components/AccountPopup.svelte @@ -133,7 +133,7 @@ actions.push( ...getMenu(items, ['main']), { - icon: login.icon.InviteWorkspace, + icon: setting.icon.InviteWorkspace, label: setting.string.InviteWorkspace, action: async () => { inviteWorkspace()