|
|
@ -8,7 +8,7 @@ import { ProxyEdit } from './components/proxy/proxy_edit'; |
|
|
|
export class RedisEdit extends BI.Widget { |
|
|
|
export class RedisEdit extends BI.Widget { |
|
|
|
static xtype = 'dec.dcm.connection.plugin.redis.edit'; |
|
|
|
static xtype = 'dec.dcm.connection.plugin.redis.edit'; |
|
|
|
props = { |
|
|
|
props = { |
|
|
|
formData: { |
|
|
|
value: { |
|
|
|
basicConfig : { |
|
|
|
basicConfig : { |
|
|
|
...BASIC_CONFIG, |
|
|
|
...BASIC_CONFIG, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -33,10 +33,10 @@ export class RedisEdit extends BI.Widget { |
|
|
|
oldPassword = ''; |
|
|
|
oldPassword = ''; |
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const formData = BI.get(this.options, 'formData'); |
|
|
|
const value = BI.get(this.options, 'value'); |
|
|
|
const basicConfig = BI.get(formData, 'basicConfig', BASIC_CONFIG); |
|
|
|
const basicConfig = BI.get(value, 'basicConfig', BASIC_CONFIG); |
|
|
|
const poolConfig = BI.get(formData, 'poolConfig', POOL_CONFIG); |
|
|
|
const poolConfig = BI.get(value, 'poolConfig', POOL_CONFIG); |
|
|
|
const proxyConfig = BI.get(formData, 'proxyConfig', PROXY_CONFIG); |
|
|
|
const proxyConfig = BI.get(value, 'proxyConfig', PROXY_CONFIG); |
|
|
|
const { host, port, password, originalCharsetName } = basicConfig; |
|
|
|
const { host, port, password, originalCharsetName } = basicConfig; |
|
|
|
this.poolConfigData = poolConfig; |
|
|
|
this.poolConfigData = poolConfig; |
|
|
|
this.proxyConfigData = proxyConfig; |
|
|
|
this.proxyConfigData = proxyConfig; |
|
|
@ -166,7 +166,7 @@ export class RedisEdit extends BI.Widget { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public getSubmitValue() { |
|
|
|
public getValue() { |
|
|
|
const originalCharsetName = this.originalCharsetName.getValue()[0] || ''; |
|
|
|
const originalCharsetName = this.originalCharsetName.getValue()[0] || ''; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|