mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
Merge pull request #8023 from artoscinote/ma_SCI_11249
Remove duplicate openLocallyMenu element [SCI-11249]
This commit is contained in:
commit
0bc8e39491
1 changed files with 1 additions and 5 deletions
|
@ -2,11 +2,7 @@
|
|||
<span class="file-name"><%= asset.file.metadata[:name] || asset.file_name %></span>
|
||||
<div class="sci-btn-group">
|
||||
<% if can_edit && !preview %>
|
||||
<% if wopi_enabled? && wopi_file?(asset) %>
|
||||
<div id="openLocallyMenu" data-behaviour="vue">
|
||||
<open-locally-menu :attachment="<%= { attributes: AssetSerializer.new(asset, scope: { user: current_user }).as_json }.to_json %>" />
|
||||
</div>
|
||||
<% elsif asset.file.metadata[:asset_type] == 'marvinjs' %>
|
||||
<% if asset.file.metadata[:asset_type] == 'marvinjs' %>
|
||||
<button class="btn btn-light marvinjs-edit-button"
|
||||
data-sketch-id="<%= asset.id %>"
|
||||
data-update-url="<%= marvin_js_asset_path(asset) %>"
|
||||
|
|
Loading…
Reference in a new issue