mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 12:17:44 +02:00
Custom table (#1734)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -13,25 +13,15 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { FindOptions, Ref, SortingOrder } from '@anticrm/core'
|
||||
import { Ref } from '@anticrm/core'
|
||||
import { Team } from '@anticrm/tracker'
|
||||
import { Button, IconAdd, Label, showPopup } from '@anticrm/ui'
|
||||
import { Table } from '@anticrm/view-resources'
|
||||
import contact from '@anticrm/contact'
|
||||
import { Project, Team } from '@anticrm/tracker'
|
||||
import NewProject from './NewProject.svelte'
|
||||
import plugin from '../../plugin'
|
||||
import NewProject from './NewProject.svelte'
|
||||
|
||||
export let space: Ref<Team>
|
||||
|
||||
const options: FindOptions<Project> = {
|
||||
sort: {
|
||||
startDate: SortingOrder.Ascending
|
||||
},
|
||||
lookup: {
|
||||
lead: contact.class.Employee
|
||||
}
|
||||
}
|
||||
|
||||
async function showCreateDialog () {
|
||||
showPopup(NewProject, { space, targetElement: null }, null)
|
||||
}
|
||||
@@ -58,7 +48,6 @@
|
||||
}
|
||||
]}
|
||||
query={{}}
|
||||
{options}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user