mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Fix cancel at closing file modal and remove edit button for marvinjs asset [SCI-7061] (#4313)
This commit is contained in:
parent
0579441135
commit
68bbb87797
2 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,9 @@
|
|||
{{ i18n.t('assets.file_preview.edit_in_marvinjs') }}
|
||||
</a>
|
||||
</li>
|
||||
<li v-if="attachment.attributes.image_editable && attachment.attributes.urls.start_edit_image">
|
||||
<li v-if="attachment.attributes.asset_type != 'marvinjs'
|
||||
&& attachment.attributes.image_editable
|
||||
&& attachment.attributes.urls.start_edit_image">
|
||||
<a class="image-edit-button"
|
||||
:data-image-id="attachment.id"
|
||||
:data-image-name="attachment.attributes.file_name"
|
||||
|
|
|
@ -108,6 +108,7 @@
|
|||
},
|
||||
methods: {
|
||||
cancel() {
|
||||
$(this.$refs.modal).modal('hide');
|
||||
this.$nextTick(() => this.$emit('cancel'));
|
||||
},
|
||||
onImageFilePaste (pasteEvent) {
|
||||
|
|
Loading…
Reference in a new issue