-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No revert for "active" snapshot #12768
No revert for "active" snapshot #12768
Conversation
In the snapshot screen when the "active" snapshot is selected the revert button should be disabled. https://bugzilla.redhat.com/show_bug.cgi?id=1396068
Checked commit borod108@75e22a8 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
@masayag please review. |
@@ -928,6 +928,7 @@ def disable_button(id) | |||
when "vm_snapshot_delete_all" | |||
return @record.is_available_now_error_message(:remove_all_snapshots) unless @record.is_available?(:remove_all_snapshots) | |||
when "vm_snapshot_revert" | |||
return N_("Select a snapshot that is not the active one") if @active |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see how, it does not seem to know @Active there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, so @active
is a UI toolbar thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if comes from the controller and looks pretty spaghetti
@martinpovolny LGTM - please merge @miq-bot assign @martinpovolny |
No revert for "active" snapshot (cherry picked from commit eb0315d) https://bugzilla.redhat.com/show_bug.cgi?id=1402992
Euwe backport details:
|
…evert_active" This reverts commit 7898c8e. https://bugzilla.redhat.com/show_bug.cgi?id=1402992
In the snapshot screen when the "active" snapshot is selected
the revert button should be disabled.
https://bugzilla.redhat.com/show_bug.cgi?id=1396068