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' %>