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