Skip to content

Commit

Permalink
Fix Remove Selected Items from Inventory button for Images, Instances
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1601955

Fix the button by adding support for destroy to VmOrTemplate model.
  • Loading branch information
Hilda Stastna committed Jul 31, 2018
1 parent 12b109c commit 7de8cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/mixins/supports_feature_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module SupportsFeatureMixin
:external_logging => 'Launch External Logging UI',
:swift_service => 'Swift storage service',
:delete => 'Deletion',
:destroy => 'Destroy',
:delete_aggregate => 'Host Aggregate Deletion',
:delete_floating_ip => 'Floating IP Deletion',
:delete_security_group => 'Security Group Deletion',
Expand Down
1 change: 1 addition & 0 deletions app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ def self.includes_template?(ids)
end

supports_not :snapshots
supports :destroy

# Stop showing Reconfigure VM task unless the subclass allows
def reconfigurable?
Expand Down

0 comments on commit 7de8cf2

Please sign in to comment.