Fix archive table (#698)

Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
Ilya Sumbatyants 2021-12-21 16:57:50 +07:00 committed by GitHub
parent a744cb1911
commit 11ddaad88d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,7 @@
const showMenu = async (ev: MouseEvent, object: Doc, row: number): Promise<void> => {
selectRow = row
showPopup(Menu, { object }, ev.target as HTMLElement, () => {
showPopup(Menu, { object, baseMenuClass }, ev.target as HTMLElement, () => {
selectRow = undefined
})
}

View File

@ -19,7 +19,7 @@
import { translate } from '@anticrm/platform'
import { Label, Icon } from '@anticrm/ui'
import view from '@anticrm/view'
import { TableView } from '@anticrm/view-resources'
import { Table } from '@anticrm/view-resources'
import { createQuery } from '@anticrm/presentation'
import { NavigatorModel } from '@anticrm/workbench'
@ -60,10 +60,11 @@
<div class="fs-title"><Label label={workbench.string.Archived} params={{ object: spaceName }} /></div>
</div>
{#if spaceSample !== undefined}
<TableView
<Table
_class={spaceSample._class}
config={['name', 'company', 'location', 'modifiedOn']}
options={{}}
enableChecking={true}
baseMenuClass={core.class.Space}
query={{
_class: { $in: model?.spaces.map(x => x.spaceClass) ?? [] },