Skip to content

Commit

Permalink
Show hover text correctly on Copy catalog item button
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kataria committed Jul 6, 2020
1 parent 65660b1 commit b201397
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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
Expand Up @@ -36,7 +36,6 @@ class ApplicationHelper::Toolbar::ServicetemplateCenter < ApplicationHelper::Too
button(
:catalogitem_copy,
'pficon pficon-edit fa-lg',
N_('This Item cannot be copied'),
N_('Copy Selected Item'),
:send_checked => true,
:klass => ApplicationHelper::Button::CatalogItemCopyButton
Expand Down

0 comments on commit b201397

Please sign in to comment.