mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 01:45:59 +00:00
change theme menu command
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getCommands } from '../stores';
|
||||
import { getCommands, visibleCommandPalette } from '../stores';
|
||||
import { GlobalCommand } from './registerCommand';
|
||||
|
||||
export default function runCommand(id) {
|
||||
@@ -11,6 +11,8 @@ export default function runCommand(id) {
|
||||
} else {
|
||||
if (command.onClick) {
|
||||
command.onClick();
|
||||
} else if (command.getSubCommands) {
|
||||
visibleCommandPalette.set(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user