fix: missed invite icon (#4962)

Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
Eduard Aksamitov 2024-03-14 20:19:23 +03:00 committed by GitHub
parent 4efece2074
commit b7775cb26c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 26 additions and 34 deletions

View File

@ -1,7 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="inviteWorkspace" viewBox="0 0 32 32">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 18C20.4183 18 24 14.4183 24 10C24 5.58172 20.4183 2 16 2C11.5817 2 8 5.58172 8 10C8 14.4183 11.5817 18 16 18ZM16 16C19.3137 16 22 13.3137 22 10C22 6.68629 19.3137 4 16 4C12.6863 4 10 6.68629 10 10C10 13.3137 12.6863 16 16 16Z" />
<path d="M24 21C24 20.4477 24.4477 20 25 20C25.5523 20 26 20.4477 26 21V24H29C29.5523 24 30 24.4477 30 25C30 25.5523 29.5523 26 29 26H26V29C26 29.5523 25.5523 30 25 30C24.4477 30 24 29.5523 24 29V26H21C20.4477 26 20 25.5523 20 25C20 24.4477 20.4477 24 21 24H24V21Z" />
<path d="M13 20C9.13401 20 6 23.134 6 27V29C6 29.5523 6.44772 30 7 30C7.55228 30 8 29.5523 8 29V27C8 24.2386 10.2386 22 13 22H17C17.5523 22 18 21.5523 18 21C18 20.4477 17.5523 20 17 20H13Z" />
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 892 B

View File

@ -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.
//

View File

@ -56,4 +56,9 @@
<symbol id="inviteSettings" viewBox="0 0 16 16">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 3C1.89543 3 1 3.89543 1 5V11C1 12.1046 1.89543 13 3 13H13C14.1046 13 15 12.1046 15 11V5C15 3.89543 14.1046 3 13 3H3ZM2.25155 4.3368C2.43474 4.1302 2.70217 4 3 4H13C13.2978 4 13.5653 4.1302 13.7484 4.33679L7.99999 7.43211L2.25155 4.3368ZM2 5.3371V11C2 11.5523 2.44772 12 3 12H13C13.5523 12 14 11.5523 14 11V5.33709L8.23704 8.44022C8.08905 8.51991 7.91093 8.51991 7.76294 8.44022L2 5.3371Z" />
</symbol>
<symbol id="inviteWorkspace" viewBox="0 0 32 32">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 18C20.4183 18 24 14.4183 24 10C24 5.58172 20.4183 2 16 2C11.5817 2 8 5.58172 8 10C8 14.4183 11.5817 18 16 18ZM16 16C19.3137 16 22 13.3137 22 10C22 6.68629 19.3137 4 16 4C12.6863 4 10 6.68629 10 10C10 13.3137 12.6863 16 16 16Z" />
<path d="M24 21C24 20.4477 24.4477 20 25 20C25.5523 20 26 20.4477 26 21V24H29C29.5523 24 30 24.4477 30 25C30 25.5523 29.5523 26 29 26H26V29C26 29.5523 25.5523 30 25 30C24.4477 30 24 29.5523 24 29V26H21C20.4477 26 20 25.5523 20 25C20 24.4477 20.4477 24 21 24H24V21Z" />
<path d="M13 20C9.13401 20 6 23.134 6 27V29C6 29.5523 6.44772 30 7 30C7.55228 30 8 29.5523 8 29V27C8 24.2386 10.2386 22 13 22H17C17.5523 22 18 21.5523 18 21C18 20.4477 17.5523 20 17 20H13Z" />
</symbol>
</svg>

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -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`
})

View File

@ -168,7 +168,7 @@
on:click={selectWorkspace}
/>
<NavItem
icon={login.icon.InviteWorkspace}
icon={setting.icon.InviteWorkspace}
label={setting.string.InviteWorkspace}
on:click={inviteWorkspace}
/>

View File

@ -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<TemplateFieldCategory>

View File

@ -133,7 +133,7 @@
actions.push(
...getMenu(items, ['main']),
{
icon: login.icon.InviteWorkspace,
icon: setting.icon.InviteWorkspace,
label: setting.string.InviteWorkspace,
action: async () => {
inviteWorkspace()