Skip to content

Commit

Permalink
Merge pull request #54 from borod108/bugs/delete_active_snapshot
Browse files Browse the repository at this point in the history
Disable delete button for the active snapshot on oVirt
  • Loading branch information
oourfali authored Jul 2, 2017
2 parents cb7dbe4 + ce6055c commit 9aaf467
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 9aaf467

Please sign in to comment.