mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
minor_template_category_creation_fix (#3218)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
ffc3999bdf
commit
56df3c5ea2
@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import core from '@hcengineering/core'
|
||||
import core, { getCurrentAccount } from '@hcengineering/core'
|
||||
import presentation, { getClient, SpaceCreateCard } from '@hcengineering/presentation'
|
||||
import { EditBox, Grid, IconFolder, ToggleWithLabel } from '@hcengineering/ui'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
@ -24,6 +24,7 @@
|
||||
let name: string = ''
|
||||
const description: string = ''
|
||||
let isPrivate: boolean = false
|
||||
const me = getCurrentAccount()._id
|
||||
|
||||
export function canClose (): boolean {
|
||||
return name === ''
|
||||
@ -37,7 +38,7 @@
|
||||
description,
|
||||
private: isPrivate,
|
||||
archived: false,
|
||||
members: []
|
||||
members: [me]
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user