mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
hints in references columns
This commit is contained in:
parent
e4ad9acb68
commit
a23c882473
@ -38,6 +38,7 @@ export class TableFormViewDisplay extends FormViewDisplay {
|
||||
this.columns = [];
|
||||
this.addDisplayColumns(this.gridDisplay.columns);
|
||||
this.baseTable = this.gridDisplay.baseTable;
|
||||
this.gridDisplay.hintBaseColumns = this.columns;
|
||||
}
|
||||
|
||||
addDisplayColumns(columns: DisplayColumn[]) {
|
||||
|
@ -8,6 +8,7 @@ import { filterName } from './filterName';
|
||||
export class TableGridDisplay extends GridDisplay {
|
||||
public table: TableInfo;
|
||||
public addAllExpandedColumnsToSelected = false;
|
||||
public hintBaseColumns: DisplayColumn[];
|
||||
|
||||
constructor(
|
||||
public tableName: NamedObjectInfo,
|
||||
@ -114,7 +115,7 @@ export class TableGridDisplay extends GridDisplay {
|
||||
addHintsToSelect(select: Select): boolean {
|
||||
let res = false;
|
||||
const groupColumns = this.groupColumns;
|
||||
for (const column of this.getGridColumns()) {
|
||||
for (const column of this.hintBaseColumns || this.getGridColumns()) {
|
||||
if (column.foreignKey) {
|
||||
if (groupColumns && !groupColumns.includes(column.uniqueName)) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user