feat(app): able to set a parent

This commit is contained in:
Quentin Laffont
2022-11-04 10:05:17 +01:00
parent 8c051ff5f7
commit b0d61f974c
5 changed files with 53 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
import _ from 'lodash';
import { asyncFilter } from '../utility/common';
import AppObjectGroup from './AppObjectGroup.svelte';
import { plusExpandIcon } from '../icons/expandIcons';
import AppObjectListItem from './AppObjectListItem.svelte';
@@ -18,6 +19,7 @@
export let getIsExpanded = null;
export let setIsExpanded = null;
export let groupIconFunc = plusExpandIcon;
export let groupFunc = undefined;
$: filtered = !groupFunc
@@ -71,6 +73,7 @@
{module}
items={groups[group]}
{expandIconFunc}
{groupIconFunc}
{isExpandable}
{subItemsComponent}
{checkedObjectsStore}