mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 20:27:43 +02:00
Sort spaces ascending (#710)
Signed-off-by: Ilya Sumbatyants <ilya.sumb@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user