mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import contact, { Employee, EmployeeAccount } from '@anticrm/contact'
|
||||
import contact, { Employee } from '@anticrm/contact'
|
||||
import type { Data, Ref, Space } from '@anticrm/core'
|
||||
import { generateId } from '@anticrm/core'
|
||||
import { OK, Status } from '@anticrm/platform'
|
||||
@@ -29,12 +29,12 @@
|
||||
let _space = space
|
||||
const status: Status = OK
|
||||
|
||||
let assignee: Ref<EmployeeAccount> // | null = null
|
||||
let assignee: Ref<Employee> | null = null
|
||||
|
||||
const object: Data<Task> = {
|
||||
name: '',
|
||||
description: '',
|
||||
assignee: undefined as unknown as Ref<Employee>,
|
||||
assignee: null,
|
||||
number: 0
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<Card
|
||||
label={task.string.CreateTask}
|
||||
okAction={createTask}
|
||||
canSave={object.name.length > 0 && assignee !== undefined}
|
||||
canSave={object.name.length > 0}
|
||||
spaceClass={task.class.Project}
|
||||
spaceLabel={task.string.ProjectName}
|
||||
spacePlaceholder={task.string.SelectProject}
|
||||
@@ -99,10 +99,12 @@
|
||||
focus
|
||||
/>
|
||||
<UserBox
|
||||
_class={contact.class.EmployeeAccount}
|
||||
_class={contact.class.Employee}
|
||||
title="Assignee *"
|
||||
caption="Assign this task"
|
||||
bind:value={assignee}
|
||||
allowDeselect
|
||||
titleDeselect={task.string.TaskUnAssign}
|
||||
/>
|
||||
</Grid>
|
||||
</Card>
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
caption="Assignee"
|
||||
bind:value={object.assignee}
|
||||
on:change={change}
|
||||
allowDeselect
|
||||
titleDeselect={task.string.TaskUnAssign}
|
||||
/>
|
||||
<AttributeBarEditor key={'state'} {object} showHeader={false} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user