Skip to content

Commit

Permalink
Merge pull request #498 from scientist-softserv/i468-feature-btn-foll…
Browse files Browse the repository at this point in the history
…owup

🐛 flip logic for when to display feature button on works show page
  • Loading branch information
ShanaLMoore authored Jul 26, 2023
2 parents a14632e + 87dd6e2 commit d94bf6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hyrax/base/_show_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
data: { toggle: "modal", target: "#collection-list-container" } %>
<% end %>
<%# OVERRIDE begin %>
<% if presenter.work_featurable? && AccountsHelper::TENANTS_WITH_NO_WORK_FEATURES.include?(@current_account.name) %>
<% if presenter.work_featurable? && !AccountsHelper::TENANTS_WITH_NO_WORK_FEATURES.include?(@current_account.name) %>
<%= link_to t('.feature'), hyrax.featured_work_path(presenter, format: :json),
data: { behavior: 'feature' },
class: presenter.display_feature_link? ? 'btn btn-default' : 'btn btn-default collapse' %>
Expand Down

0 comments on commit d94bf6a

Please sign in to comment.