Gustavo Frederico Temple Pedrosa has posted comments on this change.
Change subject: core, webadmin: Show only supported watchdogs
......................................................................
Patch Set 1:
(3 comments)
....................................................
File
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/UnitVmModel.java
Line 1247: ArrayList<String> watchDogModels = new ArrayList<String>();
Line 1248: watchDogModels.add(null);
Line 1249: for (VmWatchdogType type : VmWatchdogType.values()) {
Line 1250:
watchDogModels.add(EnumTranslator.createAndTranslate(type));
Line 1251: }
Done
Line 1252: getWatchdogModel().setItems(watchDogModels);
Line 1253:
Line 1254: setIsAutoAssign(new NotChangableForVmInPoolEntityModel());
Line 1255: getIsAutoAssign().getEntityChangedEvent().addListener(this);
Line 1737: }
Line 1738:
Line 1739: private void updateWatchdogModels(Integer osType) {
Line 1740: VDSGroup cluster = getSelectedCluster();
Line 1741: if (osType != null && cluster != null) {
Done
Line 1742: AsyncQuery asyncQuery = new AsyncQuery();
Line 1743: asyncQuery.asyncCallback = new INewAsyncCallback() {
Line 1744: @Override
Line 1745: public void onSuccess(Object model, Object
returnValue) {
Line 1746: ArrayList<String> watchDogModels =
(ArrayList<String>) ((VdcQueryReturnValue) returnValue)
Line 1747: .getReturnValue();
Line 1748: watchDogModels.add(0, null);
Line 1749: getWatchdogModel().setItems(
Line 1750: (ArrayList<String>) watchDogModels);
Done
Line 1751: }
Line 1752: };
Line 1753: AsyncDataProvider.getWatchDogModels(osType,
Line 1754: cluster.getcompatibility_version(), asyncQuery);
--
To view, visit http://gerrit.ovirt.org/18221
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib23f7357751025ff71c0deceda02aa51c2d8542c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gustavo Frederico Temple Pedrosa <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Gustavo Frederico Temple Pedrosa
<[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Leonardo Bianconi <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Vitor de Lima <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches