command text fix

This commit is contained in:
Jan Prochazka
2021-02-26 20:25:54 +01:00
parent 4f1eb4003a
commit db7f8d6a74
3 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ export interface GlobalCommand {
id: string;
category: string;
name: string;
text: string /* category: name */;
keyText?: string;
getSubCommands?: () => SubCommand[];
onClick?: Function;
@@ -26,6 +27,7 @@ export default function registerCommand(command: GlobalCommand) {
commands.update(x => ({
...x,
[command.id]: {
text: `${command.category}: ${command.name}`,
...command,
enabled: !enabledStore,
},