projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merging master to master_vca_intg
[osm/UI.git]
/
skyquake
/
plugins
/
launchpad
/
src
/
virtual_links
/
nsVirtualLinkCreateStore.js
diff --git
a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js
b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js
index
a3708fe
..
dbd7f58
100644
(file)
--- a/
skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js
+++ b/
skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js
@@
-84,7
+84,8
@@
class NSVirtualLinkCreateStore {
saveVnfdIdRefs: this.saveVnfdIdRefs,
saveIpProfileNames: this.saveIpProfileNames,
removeVirtualLink: this.removeVirtualLink,
saveVnfdIdRefs: this.saveVnfdIdRefs,
saveIpProfileNames: this.saveIpProfileNames,
removeVirtualLink: this.removeVirtualLink,
- saveMode: this.saveMode
+ saveMode: this.saveMode,
+ saveOnSuccess: this.saveOnSuccess
});
}
});
}
@@
-97,6
+98,12
@@
class NSVirtualLinkCreateStore {
});
}
});
}
+ saveOnSuccess = (onSuccess) => {
+ this.setState({
+ onSuccess: onSuccess
+ })
+ }
+
saveMode = (mode) => {
this.setState({
mode: mode
saveMode = (mode) => {
this.setState({
mode: mode
@@
-172,7
+179,8
@@
class NSVirtualLinkCreateStore {
let vld = _.cloneDeep(this.vld);
this.vldInitParamsTypes.map((vldInitParamType) => {
if (currentVLDInitParamsType == vldInitParamType) {
let vld = _.cloneDeep(this.vld);
this.vldInitParamsTypes.map((vldInitParamType) => {
if (currentVLDInitParamsType == vldInitParamType) {
- vld[currentVLDInitParamsType] = e.target.value;
+ let value = e.target.nodeName == "SELECT" ? JSON.parse(e.target.value) : e.target.value;
+ vld[currentVLDInitParamsType] = value;
} else {
vld[vldInitParamType] && delete vld[vldInitParamType];
}
} else {
vld[vldInitParamType] && delete vld[vldInitParamType];
}
@@
-239,22
+247,13
@@
class NSVirtualLinkCreateStore {
}
createVirtualLinkSuccess(data) {
}
createVirtualLinkSuccess(data) {
- this.setState({
- // vld: this.vld,
- mode: 'editing',
- isLoading: false
- });
+ this.onSuccess();
}
editVirtualLinkSuccess(data) {
}
editVirtualLinkSuccess(data) {
- this.setState({
- mode: 'editing',
- isLoading: false
- });
+ this.onSuccess();
}
deleteVirtualLinkSuccess(data) {
}
deleteVirtualLinkSuccess(data) {
- this.setState({
- deleteState: 'success'
- });
+ this.onSuccess();
}
cleanupPayload = (mode, vld) => {
}
cleanupPayload = (mode, vld) => {