mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 03:36:01 +00:00
perspectives:add to filter ctx menu
This commit is contained in:
@@ -17,7 +17,19 @@
|
||||
|
||||
function createMenu() {
|
||||
const customJoin = node.customJoinConfig;
|
||||
const filterInfo = node.filterInfo;
|
||||
return [
|
||||
filterInfo && {
|
||||
text: 'Add to filter',
|
||||
onClick: () =>
|
||||
setConfig(cfg => ({
|
||||
...cfg,
|
||||
filterInfos: {
|
||||
...cfg.filterInfos,
|
||||
[node.uniqueName]: filterInfo,
|
||||
},
|
||||
})),
|
||||
},
|
||||
customJoin && {
|
||||
text: 'Remove custom join',
|
||||
onClick: () =>
|
||||
|
||||
Reference in New Issue
Block a user