mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-16 05:42:13 +08:00
Merge pull request #5918 from sboursen-scinote/sb_SCI-8981
Share button is disabled for locked and archived tasks [SCI-8981]
This commit is contained in:
commit
c356018965
2 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@
|
|||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
defaul: true
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
|
|||
|
|
@ -50,9 +50,9 @@
|
|||
<% if current_team.shareable_links_enabled? %>
|
||||
<div class="share-task-container" data-behaviour="vue">
|
||||
<share-task-container
|
||||
<%= 'shared' if @my_module.shared? %>
|
||||
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) %>" />
|
||||
</div>
|
||||
|
||||
<%= javascript_include_tag 'vue_share_task_container' %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue