Skip to content

Commit

Permalink
Include names of components in UI linked components message
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Oct 31, 2018
1 parent e391dec commit ec3f77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def dialog_field_hash

def reject_if_has_resource_actions
if resource_actions.length > 0
raise _("Dialog cannot be deleted because it is connected to other components.")
raise _("Dialog cannot be deleted because it is connected to other components: #{resource_actions.pluck(:resource_type, :resource_id)}")
end
end

Expand Down

0 comments on commit ec3f77a

Please sign in to comment.