Skip to content

Commit

Permalink
Make buttons visible only in list of chargeback saved reports
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Feb 15, 2017
1 parent 7487d79 commit 24232e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -4,4 +4,8 @@ def disabled?
@report && !@report.contains_records?
@error_message.present?
end

def visible?
@view_context.x_active_tree == :cb_reports_tree
end
end
Expand Up @@ -4,4 +4,8 @@ def disabled?
@report && !@report.contains_records?
@error_message.present?
end

def visible?
@view_context.x_active_tree == :cb_reports_tree
end
end

0 comments on commit 24232e4

Please sign in to comment.