mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Fix archive table (#698)
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
parent
a744cb1911
commit
11ddaad88d
@ -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
|
||||
})
|
||||
}
|
||||
|
@ -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) ?? [] },
|
||||
|
Loading…
Reference in New Issue
Block a user