mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 11:35:54 +08:00
fix(plugin-sql-editor): CB-2094 initial state
This commit is contained in:
+2
-1
@@ -58,13 +58,14 @@ export class ResourceSqlDataSource extends BaseSqlDataSource {
|
||||
this.loaded = false;
|
||||
this.debouncedWrite = debounce(this.debouncedWrite.bind(this), VALUE_SYNC_DELAY);
|
||||
|
||||
makeObservable<this, '_script' | 'lastAction' | 'loading'>(this, {
|
||||
makeObservable<this, '_script' | 'lastAction' | 'loading' | 'loaded'>(this, {
|
||||
script: computed,
|
||||
executionContext: computed,
|
||||
nodeInfo: computed,
|
||||
_script: observable,
|
||||
lastAction: observable,
|
||||
loading: observable,
|
||||
loaded: observable,
|
||||
setScript: action,
|
||||
setNodeInfo: action,
|
||||
});
|
||||
|
||||
+1
@@ -29,6 +29,7 @@ export class LocalStorageSqlDataSource extends BaseSqlDataSource {
|
||||
constructor(state: ILocalStorageSqlDataSourceState) {
|
||||
super();
|
||||
this.state = state;
|
||||
this.outdated = false;
|
||||
|
||||
makeObservable(this, {
|
||||
script: computed,
|
||||
|
||||
@@ -30,6 +30,7 @@ export class MemorySqlDataSource extends BaseSqlDataSource {
|
||||
super();
|
||||
this._script = script;
|
||||
this._executionContext = executionContext;
|
||||
this.outdated = false;
|
||||
|
||||
makeObservable<this, '_script' | '_executionContext'>(this, {
|
||||
_script: observable,
|
||||
|
||||
Reference in New Issue
Block a user