mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
Format Task resources (#443)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -25,15 +25,15 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
let name: string = ''
|
||||
let description: string = ''
|
||||
const description: string = ''
|
||||
|
||||
export function canClose(): boolean {
|
||||
export function canClose (): boolean {
|
||||
return name === ''
|
||||
}
|
||||
|
||||
const client = getClient()
|
||||
|
||||
function createProject() {
|
||||
function createProject () {
|
||||
client.createDoc(task.class.Project, core.space.Model, {
|
||||
name,
|
||||
description,
|
||||
@@ -46,7 +46,7 @@
|
||||
<SpaceCreateCard
|
||||
label={task.string.CreateProject}
|
||||
okAction={createProject}
|
||||
canSave={name ? true : false}
|
||||
canSave={name.length > 0}
|
||||
on:close={() => { dispatch('close') }}
|
||||
>
|
||||
<Grid column={1} rowGap={1.5}>
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
import contact, { Employee, EmployeeAccount } from '@anticrm/contact'
|
||||
import type { Data, Ref, Space } from '@anticrm/core'
|
||||
import { generateId } from '@anticrm/core'
|
||||
import { OK, Status } from '@anticrm/platform'
|
||||
import { Card, getClient, UserBox } from '@anticrm/presentation'
|
||||
import { Task } from '@anticrm/task'
|
||||
import { EditBox, Grid, Status as StatusControl } from '@anticrm/ui'
|
||||
import { Status, OK, Severity } from '@anticrm/platform'
|
||||
import view from '@anticrm/view'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import task from '../plugin'
|
||||
|
||||
Reference in New Issue
Block a user