mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
Sortable list (#2618)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
$: grops = viewOptions.groupBy =
|
||||
viewOptions.groupBy[viewOptions.groupBy.length - 1] === noCategory
|
||||
? viewOptions.groupBy
|
||||
: [...viewOptions.groupBy, noCategory]
|
||||
|
||||
const client = getClient()
|
||||
const hierarchy = client.getHierarchy()
|
||||
const lookup = buildConfigLookup(hierarchy, viewlet.attachTo, viewlet.config, viewlet.options?.lookup)
|
||||
@@ -57,7 +62,7 @@
|
||||
|
||||
<div class="antiCard">
|
||||
<div class="antiCard-group grid">
|
||||
{#each viewOptions.groupBy as group, i}
|
||||
{#each grops as group, i}
|
||||
<span class="label"><Label label={i === 0 ? view.string.Grouping : view.string.Then} /></span>
|
||||
<div class="value grouping">
|
||||
<DropdownLabelsIntl
|
||||
|
||||
Reference in New Issue
Block a user