Skip to content

Commit

Permalink
Merge pull request ManageIQ#7184 from h-kataria/fix_hover_text_on_cop…
Browse files Browse the repository at this point in the history
…y_button

Show hover text correctly on Copy catalog item button
  • Loading branch information
himdel authored Jul 7, 2020
2 parents feef962 + c017bfc commit 0401439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class ApplicationHelper::Button::CatalogItemCopyButton < ApplicationHelper::Button::Basic
def disabled?
!@record.template_valid? || @record.type == 'ServiceTemplateAnsiblePlaybook'
@error_message = N_('This Item cannot be copied') if !@record.template_valid? || @record.type == 'ServiceTemplateAnsiblePlaybook'
@error_message.present?
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class ApplicationHelper::Toolbar::ServicetemplateCenter < ApplicationHelper::Too
button(
:catalogitem_copy,
'pficon pficon-edit fa-lg',
N_('This Item cannot be copied'),
N_('Copy Selected Item'),
t = N_('Copy Selected Item'),
t,
:send_checked => true,
:klass => ApplicationHelper::Button::CatalogItemCopyButton
),
Expand Down

0 comments on commit 0401439

Please sign in to comment.