Skip to content

Commit

Permalink
No revert for "active" snapshot
Browse files Browse the repository at this point in the history
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
  • Loading branch information
borod108 committed Nov 21, 2016
1 parent eaf5abc commit 75e22a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper/toolbar_builder.rb
Expand Up @@ -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
return @record.is_available_now_error_message(:revert_to_snapshot) unless @record.is_available?(:revert_to_snapshot)
end
when "MiqTemplate"
Expand Down

0 comments on commit 75e22a8

Please sign in to comment.