mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 14:36:01 +00:00
fixed translations set during module startup - use __t
This commit is contained in:
@@ -112,8 +112,9 @@ function mapItem(item, commands) {
|
||||
if (item.command) {
|
||||
const command = commands[item.command];
|
||||
if (command) {
|
||||
const commandText = item.text || command.menuName || command.toolbarName || command.name;
|
||||
return {
|
||||
text: item.text || command.menuName || command.toolbarName || command.name,
|
||||
text: _.isFunction(commandText) ? commandText() : commandText,
|
||||
keyText: command.keyText || command.keyTextFromGroup || command.disableHandleKeyText,
|
||||
onClick: () => {
|
||||
if (command.isGroupCommand) {
|
||||
|
||||
Reference in New Issue
Block a user