[node-patches] Change in ovirt-node[master]: disable continue button if Free space was negative.
hadong0720 at gmail.com
hadong0720 at gmail.com
Wed May 21 05:56:51 UTC 2014
hadong has uploaded a new change for review.
Change subject: disable continue button if Free space was negative.
......................................................................
disable continue button if Free space was negative.
If Free space was negative on the selected storage volumes to
install, disable continue button and enable it when free space
>= 0.
Change-Id: I7f8dcfa7b980b5b272fc5845b3f228af7fe4f21e
Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1099384
Signed-off-by: hadong <hadong at redhat.com>
---
M src/ovirt/node/installer/core/storage_vol_page.py
1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/55/27955/1
diff --git a/src/ovirt/node/installer/core/storage_vol_page.py b/src/ovirt/node/installer/core/storage_vol_page.py
index 470ef18..5e3bc5e 100644
--- a/src/ovirt/node/installer/core/storage_vol_page.py
+++ b/src/ovirt/node/installer/core/storage_vol_page.py
@@ -104,7 +104,13 @@
ui.Button("button.back", _("Back"))]
if not self.__enough_free_space():
- page.buttons.extend([ui.SaveButton("button.next", _("Continue"))])
+ if self.model() and self.__calculate_free_space() < 0:
+ page.buttons.extend([ui.SaveButton("button.next",
+ _("Continue"),
+ enabled=False)])
+ else:
+ page.buttons.extend([ui.SaveButton("button.next",
+ _("Continue"))])
return page
--
To view, visit http://gerrit.ovirt.org/27955
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f8dcfa7b980b5b272fc5845b3f228af7fe4f21e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hadong <hadong0720 at gmail.com>
More information about the node-patches
mailing list