Skip to content
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

Merged
merged 1 commit into from
Dec 6, 2016

Conversation

borod108
Copy link

@borod108 borod108 commented Nov 21, 2016

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

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
@miq-bot
Copy link
Member

miq-bot commented Nov 21, 2016

Checked commit borod108@75e22a8 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
1 file checked, 0 offenses detected
Everything looks good. 🏆

@borod108
Copy link
Author

@masayag please review.

@borod108
Copy link
Author

@borod108
Copy link
Author

@miq-bot assign @durandom

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

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.

Copy link
Member

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?

Copy link
Member

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

@durandom
Copy link
Member

durandom commented Dec 5, 2016

@martinpovolny LGTM - please merge

@miq-bot assign @martinpovolny
@miq-bot add_label ui, bug, providers/rhevm, euwe/yes

@miq-bot miq-bot assigned martinpovolny and unassigned durandom Dec 5, 2016
@martinpovolny martinpovolny merged commit eb0315d into ManageIQ:master Dec 6, 2016
@martinpovolny martinpovolny added this to the Sprint 51 Ending Dec 26, 2016 milestone Dec 6, 2016
simaishi pushed a commit that referenced this pull request Jan 9, 2017
@simaishi
Copy link
Contributor

simaishi commented Jan 9, 2017

Euwe backport details:

$ git log -1
commit 7898c8e3d270dd503e95fe3614128695bfc40800
Author: Martin Povolny <[email protected]>
Date:   Tue Dec 6 10:05:20 2016 +0100

    Merge pull request #12768 from borod108/bugs/1396068revert_active
    
    No revert for "active" snapshot
    (cherry picked from commit eb0315daf8d6d10817247ae29bfc4efb08668aba)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1402992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants