mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 05:43:58 +00:00
optimalization
This commit is contained in:
@@ -44,9 +44,8 @@ export default function registerCommand(command: GlobalCommand) {
|
|||||||
...x,
|
...x,
|
||||||
[command.id]: {
|
[command.id]: {
|
||||||
text:
|
text:
|
||||||
_val(command.category) || _val(command.name)
|
_.isFunction(command.category) || _.isFunction(command.name)
|
||||||
? () =>
|
? () => `${_val(command.category)}: ${_val(command.name)}`
|
||||||
`${_val(command.category)}: ${_val(command.name)}`
|
|
||||||
: `${command.category}: ${command.name}`,
|
: `${command.category}: ${command.name}`,
|
||||||
...command,
|
...command,
|
||||||
enabled: !testEnabled,
|
enabled: !testEnabled,
|
||||||
|
|||||||
Reference in New Issue
Block a user