Skip to content

Commit

Permalink
Bugfix: Containers view not refreshed upon creation of container.
Browse files Browse the repository at this point in the history
Change-Id: I0763506c7fce30005ad546c4e91f429f8a03be85
Reviewed-on: http://bellevue-ci.eng.vmware.com:8080/23035
Upgrade-Verified: jenkins <[email protected]>
Closures-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
Reviewed-by: Iveta Ilieva <[email protected]>
  • Loading branch information
iilieva committed Dec 12, 2017
1 parent 6161aa4 commit 2478956
Showing 1 changed file with 5 additions and 40 deletions.
45 changes: 5 additions & 40 deletions ui/app/src/js/stores/ContainersStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1474,34 +1474,7 @@ let ContainersStore = Reflux.createStore({
return;
}

if (operationType === constants.CONTAINERS.OPERATION.START) {
// Container Started
this.backFromContainerAction(operationType, resourceIds);

} else if (operationType === constants.CONTAINERS.OPERATION.STOP) {
// Container Stopped
this.backFromContainerAction(operationType, resourceIds);

} else if (operationType === constants.CONTAINERS.OPERATION.CREATE) {
// Container created
} else if (operationType === constants.CONTAINERS.OPERATION.REMOVE) {
// Container Removed
this.backFromContainerAction(operationType, resourceIds);

} else if (operationType === constants.CONTAINERS.OPERATION.CLUSTERING) {
// Clustering day2 op
this.backFromContainerAction(operationType, resourceIds);

} else if (operationType === constants.CONTAINERS.OPERATION.DEFAULT) {
// default - refresh current view on operation finished
this.backFromContainerAction(operationType, resourceIds);
} else if (operationType === constants.CONTAINERS.OPERATION.NETWORKCREATE) {
// Network created
this.backFromContainerAction(operationType, resourceIds);
} else if (operationType === constants.CONTAINERS.OPERATION.CREATE_VOLUME) {
// Volume created
this.backFromContainerAction(operationType, resourceIds);
}
this.backFromContainerAction(operationType, resourceIds);
},

onOperationFailed: function(operationType, resourceIds) {
Expand Down Expand Up @@ -1541,27 +1514,19 @@ let ContainersStore = Reflux.createStore({
},

onNetworkOperationCompleted: function(operationType) {
if (operationType === constants.RESOURCES.NETWORKS.OPERATION.REMOVE) {
this.navigateToContainersListView(false);
}
return this.onOperationCompleted(operationType);
},

onNetworkOperationFailed: function(operationType) {
if (operationType === constants.RESOURCES.NETWORKS.OPERATION.REMOVE) {
this.navigateToContainersListView(false);
}
return this.onOperationCompleted(operationType);
},

onVolumeOperationCompleted: function(operationType) {
if (operationType === constants.RESOURCES.VOLUMES.OPERATION.REMOVE) {
this.navigateToContainersListView(false);
}
return this.onOperationCompleted(operationType);
},

onVolumeOperationFailed: function(operationType) {
if (operationType === constants.RESOURCES.VOLUMES.OPERATION.REMOVE) {
this.navigateToContainersListView(false);
}
return this.onOperationCompleted(operationType);
},

clearOperationFailure: function() {
Expand Down

0 comments on commit 2478956

Please sign in to comment.