Arik Hadas has uploaded a new change for review. Change subject: frontend: show templates according to selected cluster ......................................................................
frontend: show templates according to selected cluster This patch fix a regression which caused the templates not to get updated when changing the cluster in the 'New VM' dialog Change-Id: Idba84e6458c88d1857d6c9274a178c31a3034869 Signed-off-by: Arik Hadas <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/49/16249/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java index 8751ad5..aa409e9 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java @@ -49,7 +49,6 @@ model.setDataCentersAndClusters(model, dataCenters, (List<VDSGroup>) returnValue, null); - initTemplate(); initCdImage(); } }, getModel().getHash()), @@ -173,6 +172,7 @@ updateQuotaByCluster(template.getQuotaId(), template.getQuotaName()); } updateCpuPinningVisibility(); + updateTemplate(); } @Override @@ -209,7 +209,7 @@ .setEntity((int) ((Integer) getModel().getMemSize().getEntity() * overCommitFactor)); } - private void initTemplate() + private void updateTemplate() { DataCenterWithCluster dataCenterWithCluster = (DataCenterWithCluster) getModel().getDataCenterWithClustersList().getSelectedItem(); -- To view, visit http://gerrit.ovirt.org/16249 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idba84e6458c88d1857d6c9274a178c31a3034869 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
