mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
handle readonly connection in UI
This commit is contained in:
@@ -23,7 +23,8 @@ export class TableFormViewDisplay extends FormViewDisplay {
|
||||
dbinfo: DatabaseInfo,
|
||||
displayOptions,
|
||||
serverVersion,
|
||||
getDictionaryDescription: DictionaryDescriptionFunc = null
|
||||
getDictionaryDescription: DictionaryDescriptionFunc = null,
|
||||
isReadOnly = false
|
||||
) {
|
||||
super(config, setConfig, cache, setCache, driver, dbinfo, serverVersion);
|
||||
this.gridDisplay = new TableGridDisplay(
|
||||
@@ -36,7 +37,8 @@ export class TableFormViewDisplay extends FormViewDisplay {
|
||||
dbinfo,
|
||||
displayOptions,
|
||||
serverVersion,
|
||||
getDictionaryDescription
|
||||
getDictionaryDescription,
|
||||
isReadOnly
|
||||
);
|
||||
this.gridDisplay.addAllExpandedColumnsToSelected = true;
|
||||
|
||||
@@ -263,4 +265,8 @@ export class TableFormViewDisplay extends FormViewDisplay {
|
||||
isExpandedColumn(uniqueName: string) {
|
||||
return this.gridDisplay.isExpandedColumn(uniqueName);
|
||||
}
|
||||
|
||||
get editable() {
|
||||
return this.gridDisplay.editable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user