mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
translation-clipboard, exportMenu, macros, datagrid commands
This commit is contained in:
@@ -40,7 +40,16 @@
|
||||
|
||||
$: dataLabeled = _.compact(
|
||||
(list || []).map(data => {
|
||||
const matchResult = matcher ? matcher(data) : true;
|
||||
const dataCopy = { ...data };
|
||||
if (dataCopy?.group && _.isFunction(dataCopy.group)) dataCopy.group = dataCopy.group();
|
||||
if (dataCopy?.title && _.isFunction(dataCopy.title)) dataCopy.title = dataCopy.title();
|
||||
if (dataCopy?.description && _.isFunction(dataCopy.description)) dataCopy.description = dataCopy.description();
|
||||
(dataCopy?.args || []).map(x => {
|
||||
if(x?.label && _.isFunction(x.label)) x.label = x.label();
|
||||
})
|
||||
|
||||
|
||||
const matchResult = matcher ? matcher(dataCopy) : true;
|
||||
|
||||
let isMatched = true;
|
||||
let isMainMatched = true;
|
||||
@@ -62,8 +71,8 @@
|
||||
isChildMatched = !module.disableShowChildrenWithParentMatch;
|
||||
}
|
||||
|
||||
const group = groupFunc ? groupFunc(data) : undefined;
|
||||
return { group, data, isMatched, isChildMatched, isMainMatched };
|
||||
const group = groupFunc ? groupFunc(dataCopy) : undefined;
|
||||
return { group, data: dataCopy, isMatched, isChildMatched, isMainMatched };
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user