From dc27620d00b3adf0d1fd7d045078fd8a748a0b68 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Fri, 4 Aug 2023 14:37:32 +0200 Subject: [PATCH] Make share button independent of task status flow or archived state [SCI-8981] --- app/javascript/vue/shareable_links/container.vue | 2 +- app/views/my_modules/protocols.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/vue/shareable_links/container.vue b/app/javascript/vue/shareable_links/container.vue index 59a84782e..d9fc2a360 100644 --- a/app/javascript/vue/shareable_links/container.vue +++ b/app/javascript/vue/shareable_links/container.vue @@ -39,7 +39,7 @@ }, disabled: { type: Boolean, - defaul: true + default: false } }, data() { diff --git a/app/views/my_modules/protocols.html.erb b/app/views/my_modules/protocols.html.erb index 3d0d2d4a0..a6867abb3 100644 --- a/app/views/my_modules/protocols.html.erb +++ b/app/views/my_modules/protocols.html.erb @@ -50,9 +50,9 @@ <% if current_team.shareable_links_enabled? %>
shareable-link-url="<%= my_module_shareable_link_path(@my_module) %>" - <%= 'disabled' if !can_manage_my_module?(current_user, @my_module) %> /> + :shared="<%= @my_module.shared? %>" + :disabled="<%= !can_share_my_module?(@my_module) %>" />
<%= javascript_include_tag 'vue_share_task_container' %>