change database status command

This commit is contained in:
Jan Prochazka
2021-11-21 10:23:57 +01:00
parent 94ace9ff1c
commit 4d7339d085
4 changed files with 56 additions and 6 deletions

View File

@@ -26,3 +26,9 @@ export function runGroupCommand(group) {
const real = values.find(x => x.group == group && !x.isGroupCommand && x.enabled);
if (real && real.onClick) real.onClick();
}
export function findCommand(id) {
const commandsValue = getCommands();
const command = commandsValue[id];
return command;
}