Custom table (#1734)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-05-13 13:38:54 +07:00
committed by GitHub
parent 5e7c320fb5
commit e91c5d073a
44 changed files with 716 additions and 339 deletions
+7 -9
View File
@@ -335,14 +335,6 @@ export function createModel (builder: Builder): void {
builder.createDoc(view.class.Viewlet, core.space.Model, {
attachTo: task.class.Issue,
descriptor: task.viewlet.StatusTable,
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
options: {
lookup: {
assignee: contact.class.Employee,
state: task.class.State,
doneState: task.class.DoneState
}
} as FindOptions<Doc>,
config: [
'',
'name',
@@ -350,11 +342,17 @@ export function createModel (builder: Builder): void {
'$lookup.state',
'$lookup.doneState',
{
key: '',
presenter: attachment.component.AttachmentsPresenter,
label: attachment.string.Files,
sortingKey: 'attachments'
},
{ presenter: chunter.component.CommentsPresenter, label: chunter.string.Comments, sortingKey: 'comments' },
{
key: '',
presenter: chunter.component.CommentsPresenter,
label: chunter.string.Comments,
sortingKey: 'comments'
},
'modifiedOn'
]
})