option not to show FK hints

This commit is contained in:
Jan Prochazka
2021-04-18 10:55:18 +02:00
parent cacd6ae849
commit 0848008302
4 changed files with 22 additions and 7 deletions

View File

@@ -28,10 +28,20 @@ export class TableFormViewDisplay extends FormViewDisplay {
setConfig: ChangeConfigFunc,
cache: GridCache,
setCache: ChangeCacheFunc,
dbinfo: DatabaseInfo
dbinfo: DatabaseInfo,
displayOptions
) {
super(config, setConfig, cache, setCache, driver, dbinfo);
this.gridDisplay = new TableGridDisplay(tableName, driver, config, setConfig, cache, setCache, dbinfo);
this.gridDisplay = new TableGridDisplay(
tableName,
driver,
config,
setConfig,
cache,
setCache,
dbinfo,
displayOptions
);
this.gridDisplay.addAllExpandedColumnsToSelected = true;
this.isLoadedCorrectly = this.gridDisplay.isLoadedCorrectly && !!this.driver;

View File

@@ -17,7 +17,8 @@ export class TableGridDisplay extends GridDisplay {
setConfig: ChangeConfigFunc,
cache: GridCache,
setCache: ChangeCacheFunc,
dbinfo: DatabaseInfo
dbinfo: DatabaseInfo,
public displayOptions: any
) {
super(config, setConfig, cache, setCache, driver, dbinfo);
@@ -168,7 +169,7 @@ export class TableGridDisplay extends GridDisplay {
processReferences(select: Select, displayedColumnInfo: DisplayedColumnInfo, options) {
this.addJoinsFromExpandedColumns(select, this.columns, 'basetbl', displayedColumnInfo);
if (!options.isExport) {
if (!options.isExport && this.displayOptions.showHintColumns) {
this.addHintsToSelect(select);
}
}