Skip to content

Commit

Permalink
Disable delete button for the active snapshot on oVirt
Browse files Browse the repository at this point in the history
Disable the delete button when the active snapshot is selected
for a vm on oVirt.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1443411
  • Loading branch information
Boris Odnopozov committed Jun 29, 2017
1 parent ff1ccd2 commit ce6055c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def revert_to_snapshot_denied_message(active = false)
return _("Revert is not allowed for a snapshot that is the active one") if active
end

def remove_snapshot_denied_message(active = false)
return _("Delete is not allowed for a snapshot that is the active one") if active
end

def snapshotting_memory_allowed?
current_state == 'on'
end
Expand Down

0 comments on commit ce6055c

Please sign in to comment.