mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 04:05:39 +00:00
Fix status view and calendar (#1239)
This commit is contained in:
parent
fab8ee5f14
commit
5f4edc43c0
@ -123,7 +123,8 @@ export function createModel (builder: Builder): void {
|
||||
const leadLookup: Lookup<Lead> =
|
||||
{
|
||||
attachedTo: [lead.mixin.Customer, { _id: { channels: contact.class.Channel } }],
|
||||
state: task.class.State
|
||||
state: task.class.State,
|
||||
doneState: task.class.DoneState
|
||||
}
|
||||
|
||||
builder.createDoc(view.class.Viewlet, core.space.Model, {
|
||||
@ -137,6 +138,7 @@ export function createModel (builder: Builder): void {
|
||||
'',
|
||||
'$lookup.attachedTo',
|
||||
'$lookup.state',
|
||||
'$lookup.doneState',
|
||||
{ presenter: attachment.component.AttachmentsPresenter, label: attachment.string.Files, sortingKey: 'attachments' },
|
||||
{ presenter: chunter.component.CommentsPresenter, label: chunter.string.Comments, sortingKey: 'comments' },
|
||||
'modifiedOn',
|
||||
|
@ -300,12 +300,18 @@ export function createModel (builder: Builder): void {
|
||||
descriptor: task.viewlet.StatusTable,
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
options: {
|
||||
lookup: { assignee: contact.class.Employee }
|
||||
lookup: {
|
||||
assignee: contact.class.Employee,
|
||||
state: task.class.State,
|
||||
doneState: task.class.DoneState
|
||||
}
|
||||
} as FindOptions<Doc>,
|
||||
config: [
|
||||
'',
|
||||
'name',
|
||||
'$lookup.assignee',
|
||||
'$lookup.state',
|
||||
'$lookup.doneState',
|
||||
{ presenter: attachment.component.AttachmentsPresenter, label: attachment.string.Files, sortingKey: 'attachments' },
|
||||
{ presenter: chunter.component.CommentsPresenter, label: chunter.string.Comments, sortingKey: 'comments' },
|
||||
'modifiedOn'
|
||||
|
@ -13,6 +13,8 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script type="ts">
|
||||
import { dataset_dev } from 'svelte/internal';
|
||||
|
||||
import MonthCalendar from './MonthCalendar.svelte'
|
||||
|
||||
/**
|
||||
@ -30,6 +32,7 @@
|
||||
}
|
||||
function month (date: Date, m: number): Date {
|
||||
date = new Date(date)
|
||||
date.setDate(1)
|
||||
date.setMonth(m)
|
||||
return date
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user