minor_template_category_creation_fix (#3218)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-05-19 14:25:30 +06:00 committed by GitHub
parent ffc3999bdf
commit 56df3c5ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@
// limitations under the License. // limitations under the License.
--> -->
<script lang="ts"> <script lang="ts">
import core from '@hcengineering/core' import core, { getCurrentAccount } from '@hcengineering/core'
import presentation, { getClient, SpaceCreateCard } from '@hcengineering/presentation' import presentation, { getClient, SpaceCreateCard } from '@hcengineering/presentation'
import { EditBox, Grid, IconFolder, ToggleWithLabel } from '@hcengineering/ui' import { EditBox, Grid, IconFolder, ToggleWithLabel } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte' import { createEventDispatcher } from 'svelte'
@ -24,6 +24,7 @@
let name: string = '' let name: string = ''
const description: string = '' const description: string = ''
let isPrivate: boolean = false let isPrivate: boolean = false
const me = getCurrentAccount()._id
export function canClose (): boolean { export function canClose (): boolean {
return name === '' return name === ''
@ -37,7 +38,7 @@
description, description,
private: isPrivate, private: isPrivate,
archived: false, archived: false,
members: [] members: [me]
}) })
} }
</script> </script>