Remove duplicate openLocallyMenu element [SCI-11249]

This commit is contained in:
Martin Artnik 2024-11-08 10:27:05 +01:00
parent 8246eed23c
commit 778552e809

View file

@ -2,11 +2,7 @@
<span class="file-name"><%= asset.file.metadata[:name] || asset.file_name %></span> <span class="file-name"><%= asset.file.metadata[:name] || asset.file_name %></span>
<div class="sci-btn-group"> <div class="sci-btn-group">
<% if can_edit && !preview %> <% if can_edit && !preview %>
<% if wopi_enabled? && wopi_file?(asset) %> <% if asset.file.metadata[:asset_type] == 'marvinjs' %>
<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' %>
<button class="btn btn-light marvinjs-edit-button" <button class="btn btn-light marvinjs-edit-button"
data-sketch-id="<%= asset.id %>" data-sketch-id="<%= asset.id %>"
data-update-url="<%= marvin_js_asset_path(asset) %>" data-update-url="<%= marvin_js_asset_path(asset) %>"