mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-03 10:24:30 +08:00
Hide office edit buttons in protocol preview and fix image preview in protocol edit [SCI-877]
This commit is contained in:
parent
181d981a51
commit
4fac6484b5
3 changed files with 5 additions and 2 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
<%= render partial: "protocols/steps.html.erb" %>
|
||||
|
||||
<%= render partial: "shared/image_preview_modal.html.erb" %>
|
||||
|
||||
<div class="hidden" data-role="updated-at-label-url" data-url="<%= updated_at_label_protocol_path(@protocol) %>"></div>
|
||||
|
||||
<%= javascript_include_tag "protocols/edit" %>
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
length: Constants::FILENAME_TRUNCATION_LENGTH) %></p>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= render partial: 'steps/wopi_controlls.html.erb', locals: { asset: asset } %>
|
||||
<%= render partial: 'steps/wopi_controlls.html.erb', locals: { asset: asset, view_only: true } %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
<%= wopi_asset_view_button(asset) %>
|
||||
<% if can_edit_step_in_protocol(@protocol) %>
|
||||
<% view_only ||= false %>
|
||||
<% if !view_only && can_edit_step_in_protocol(@protocol) %>
|
||||
<%= wopi_asset_edit_button(asset) %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Reference in a new issue