mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00:00
Review creation fixes
1. Set current date to not create with undefined start/due 2. Fix close by Esc Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
b9f78c5b43
commit
d47b35dc69
@ -39,8 +39,8 @@
|
||||
|
||||
let title: string = ''
|
||||
let description: string = ''
|
||||
let startDate: number | null = null
|
||||
let dueDate: number | null = null
|
||||
let startDate: number = Date.now()
|
||||
let dueDate: number = Date.now() + 30 * 60 * 1000
|
||||
let location: string = ''
|
||||
let company: Ref<Organization> | undefined = undefined
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
const hierarchy = client.getHierarchy()
|
||||
|
||||
export function canClose (): boolean {
|
||||
return candidate === undefined
|
||||
return (!preserveCandidate ? candidate === undefined : true) && title.length === 0
|
||||
}
|
||||
|
||||
let spaceLabel: string = ''
|
||||
|
Loading…
Reference in New Issue
Block a user