connection context menu

This commit is contained in:
Jan Prochazka
2021-02-28 18:12:13 +01:00
parent 5929a01010
commit c497c1ceca
5 changed files with 61 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
<script>
import _ from 'lodash';
import { currentDropDownMenu } from '../stores';
import DropDownMenu from './DropDownMenu.svelte';
</script>
@@ -7,7 +8,7 @@
<DropDownMenu
left={$currentDropDownMenu.left}
top={$currentDropDownMenu.top}
items={$currentDropDownMenu.items}
items={_.compact(_.flatten($currentDropDownMenu.items))}
on:close={() => ($currentDropDownMenu = null)}
/>
{/if}