mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 03:06:00 +00:00
context menu
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { commands } from '../stores';
|
||||
import invalidateCommands from './invalidateCommands';
|
||||
import { invalidateCommandDefinitions } from './invalidateCommands';
|
||||
|
||||
export interface SubCommand {
|
||||
text: string;
|
||||
@@ -39,16 +39,5 @@ export default function registerCommand(command: GlobalCommand) {
|
||||
enabled: !testEnabled,
|
||||
},
|
||||
}));
|
||||
invalidateCommands();
|
||||
// if (enabledStore) {
|
||||
// enabledStore.subscribe(value => {
|
||||
// commands.update(x => ({
|
||||
// ...x,
|
||||
// [command.id]: {
|
||||
// ...x[command.id],
|
||||
// enabled: value,
|
||||
// },
|
||||
// }));
|
||||
// });
|
||||
// }
|
||||
invalidateCommandDefinitions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user