Tal Nisan has uploaded a new change for review. Change subject: webadmin: Changed edit VM disk to use run single action (#848806) ......................................................................
webadmin: Changed edit VM disk to use run single action (#848806) The edit VM disk command in uicommon used run multiple actions for no reason due to this the VM disks list was not refreshed after the command excution and waited for the next timer interval to refresh, this caused the update data to appear only after a few seconds instead of immediately Change-Id: I75f4ebe1f20ce8e924f2d5d79ab1b1b6e3d6ef27 Bug-Url: https://bugzilla.redhat.com/848806 Signed-off-by: Tal Nisan <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java 1 file changed, 8 insertions(+), 13 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/67/9467/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java index c630709..b5e4bdc 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmDiskListModel.java @@ -715,19 +715,14 @@ parameters = new UpdateVmDiskParameters(vm.getId(), disk.getId(), disk); } - ArrayList<VdcActionParametersBase> paramerterList = new ArrayList<VdcActionParametersBase>(); - paramerterList.add(parameters); - - Frontend.RunMultipleAction(actionType, paramerterList, - new IFrontendMultipleActionAsyncCallback() { - @Override - public void Executed(FrontendMultipleActionAsyncResult result) { - VmDiskListModel localModel = (VmDiskListModel) result.getState(); - localModel.getWindow().StopProgress(); - Cancel(); - } - }, - this); + Frontend.RunAction(actionType, parameters, new IFrontendActionAsyncCallback() { + @Override + public void Executed(FrontendActionAsyncResult result) { + VmDiskListModel localModel = (VmDiskListModel) result.getState(); + localModel.getWindow().StopProgress(); + Cancel(); + } + }, this); } private void ForceCreationWarning(ArrayList<String> usedLunsMessages) { -- To view, visit http://gerrit.ovirt.org/9467 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I75f4ebe1f20ce8e924f2d5d79ab1b1b6e3d6ef27 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
