mirror of https://github.com/rancher/ui.git
Parse the 'key=value' format of custom attributes
We weren't initializing custom attributes because we were not parsing the backend format appropriately. We needed to parse the 'key=value'.
This commit is contained in:
parent
b3f5bfe615
commit
5345de7e34
|
|
@ -367,6 +367,17 @@ export default Component.extend(NodeDriver, {
|
|||
set(this, 'vappMode', getInitialVappMode(get(this, 'config')));
|
||||
},
|
||||
|
||||
initCustomAttributes() {
|
||||
set(this, 'initialCustomAttributes', get(this, 'config.customAttribute').map((v) => {
|
||||
const [key, value] = v.split('=');
|
||||
|
||||
return {
|
||||
key,
|
||||
value,
|
||||
};
|
||||
}));
|
||||
},
|
||||
|
||||
updateVappOptions(opts) {
|
||||
set(this, 'config.vappIpprotocol', opts.vappIpprotocol);
|
||||
set(this, 'config.vappIpallocationpolicy', opts.vappIpallocationpolicy);
|
||||
|
|
|
|||
Loading…
Reference in New Issue