mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 12:19:47 +02:00
State templates minor fixes (#1736)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -257,6 +257,12 @@ export async function createKanban (
|
||||
templateId?: Ref<KanbanTemplate>
|
||||
): Promise<Ref<Kanban>> {
|
||||
if (templateId === undefined) {
|
||||
await client.createDoc(task.class.State, attachedTo, {
|
||||
title: 'New State',
|
||||
color: 9,
|
||||
rank: [...genRanks(1)][0]
|
||||
})
|
||||
|
||||
const ranks = [...genRanks(2)]
|
||||
await Promise.all([
|
||||
client.createDoc(task.class.WonState, attachedTo, {
|
||||
|
||||
Reference in New Issue
Block a user