mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 05:26:00 +00:00
find column fixed
This commit is contained in:
@@ -484,7 +484,11 @@
|
|||||||
export function hideColumn() {
|
export function hideColumn() {
|
||||||
const columnIndexes = _.uniq(selectedCells.map(x => x[1]));
|
const columnIndexes = _.uniq(selectedCells.map(x => x[1]));
|
||||||
for (const index of columnIndexes) {
|
for (const index of columnIndexes) {
|
||||||
display.setColumnVisibility(visibleRealColumns[index].uniquePath, false);
|
const name = realColumnUniqueNames[index];
|
||||||
|
const column = display.allColumns.find(x => x.uniqueName == name);
|
||||||
|
if (column) {
|
||||||
|
display.setColumnVisibility(column.uniquePath, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// selectedCells = [currentCell];
|
// selectedCells = [currentCell];
|
||||||
}
|
}
|
||||||
@@ -1050,6 +1054,8 @@
|
|||||||
{ command: 'dataGrid.setNull' },
|
{ command: 'dataGrid.setNull' },
|
||||||
{ placeTag: 'edit' },
|
{ placeTag: 'edit' },
|
||||||
{ divider: true },
|
{ divider: true },
|
||||||
|
{ command: 'dataGrid.findColumn' },
|
||||||
|
{ command: 'dataGrid.hideColumn' },
|
||||||
{ command: 'dataGrid.filterSelected' },
|
{ command: 'dataGrid.filterSelected' },
|
||||||
{ command: 'dataGrid.clearFilter' },
|
{ command: 'dataGrid.clearFilter' },
|
||||||
{ command: 'dataGrid.undo' },
|
{ command: 'dataGrid.undo' },
|
||||||
|
|||||||
Reference in New Issue
Block a user