mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 17:30:03 +00: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.
|
// 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user