handle readonly connection in UI

This commit is contained in:
Jan Prochazka
2022-03-17 12:37:17 +01:00
parent 34658e134f
commit 267e687e2b
16 changed files with 52 additions and 19 deletions

View File

@@ -36,7 +36,8 @@ export class TableGridDisplay extends GridDisplay {
dbinfo: DatabaseInfo,
public displayOptions: any,
serverVersion,
public getDictionaryDescription: DictionaryDescriptionFunc = null
public getDictionaryDescription: DictionaryDescriptionFunc = null,
isReadOnly = false
) {
super(config, setConfig, cache, setCache, driver, dbinfo, serverVersion);
@@ -53,7 +54,7 @@ export class TableGridDisplay extends GridDisplay {
this.filterable = true;
this.sortable = true;
this.groupable = true;
this.editable = true;
this.editable = !isReadOnly;
this.supportsReload = true;
this.baseTable = this.table;
if (this.table && this.table.columns) {