mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 03:59:50 +03:00
Sort spaces ascending (#710)
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
parent
edbf42c435
commit
b380f7a12e
@ -14,6 +14,7 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { SortingOrder } from '@anticrm/core'
|
||||
import type { Doc, Ref, Space } from '@anticrm/core'
|
||||
import core from '@anticrm/core'
|
||||
import { getResource, IntlString } from '@anticrm/platform'
|
||||
@ -34,7 +35,7 @@
|
||||
let spaces: Space[] = []
|
||||
let selected: Ref<Space> | undefined = undefined
|
||||
|
||||
$: query.query(model.spaceClass, { archived: false }, result => { spaces = result })
|
||||
$: query.query(model.spaceClass, { archived: false }, result => { spaces = result }, { sort: { name: SortingOrder.Ascending }})
|
||||
|
||||
const addSpace: Action = {
|
||||
label: model.addSpaceLabel,
|
||||
|
Loading…
Reference in New Issue
Block a user