mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 18:56:00 +00:00
toggle dynamic structure
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import _ from 'lodash';
|
||||
import { getContext, setContext } from 'svelte';
|
||||
import invalidateCommands from '../commands/invalidateCommands';
|
||||
import { currentDropDownMenu } from '../stores';
|
||||
import getAsArray from './getAsArray';
|
||||
|
||||
@@ -9,9 +10,12 @@ export function registerMenu(...items) {
|
||||
}
|
||||
|
||||
export default function contextMenu(node, items = []) {
|
||||
const handleContextMenu = e => {
|
||||
const handleContextMenu = async e => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
await invalidateCommands();
|
||||
|
||||
if (items) {
|
||||
const left = e.pageX;
|
||||
const top = e.pageY;
|
||||
|
||||
Reference in New Issue
Block a user