From 3df78dff11724c12ca96ba4b3f24d9ccc199cc86 Mon Sep 17 00:00:00 2001 From: David Campbell Date: Tue, 3 Dec 2024 10:23:42 -0500 Subject: [PATCH] show file manager unless member count is empty --- app/views/hyrax/base/_show_actions.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/hyrax/base/_show_actions.html.erb b/app/views/hyrax/base/_show_actions.html.erb index 31dbba1d6..7ff496546 100644 --- a/app/views/hyrax/base/_show_actions.html.erb +++ b/app/views/hyrax/base/_show_actions.html.erb @@ -41,7 +41,7 @@
<% if presenter.editor? && !workflow_restriction?(presenter) %> <%= link_to t('.edit'), edit_polymorphic_path([main_app, presenter]), class: 'btn btn-secondary' %> - <% if presenter.member_count > 1 %> + <% if presenter.member_count > 0 %> <%= link_to t("hyrax.file_manager.link_text"), polymorphic_path([main_app, :file_manager, presenter]), class: 'btn btn-secondary' %> <% end %> <% if presenter.valid_child_concerns.length > 0 %>