mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 14:06:00 +00:00
change recent database
This commit is contained in:
@@ -25,11 +25,11 @@
|
||||
import registerCommand from './registerCommand';
|
||||
|
||||
let domInput;
|
||||
let parentCommand;
|
||||
let filter = '';
|
||||
const domItems = {};
|
||||
|
||||
$: selectedIndex = true ? 0 : filter;
|
||||
$: parentCommand = _.isPlainObject($visibleCommandPalette) ? $visibleCommandPalette : null;
|
||||
|
||||
onMount(() => {
|
||||
const oldFocus = document.activeElement;
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
function handleCommand(command) {
|
||||
if (command.getSubCommands) {
|
||||
parentCommand = command;
|
||||
$visibleCommandPalette = command;
|
||||
domInput.focus();
|
||||
filter = '';
|
||||
selectedIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user