Fix cancel at closing file modal and remove edit button for marvinjs asset [SCI-7061] (#4313)

This commit is contained in:
ajugo 2022-08-05 10:46:14 +02:00 committed by GitHub
parent 0579441135
commit 68bbb87797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -108,6 +108,7 @@
},
methods: {
cancel() {
$(this.$refs.modal).modal('hide');
this.$nextTick(() => this.$emit('cancel'));
},
onImageFilePaste (pasteEvent) {