Skip to content

Commit

Permalink
#81
Browse files Browse the repository at this point in the history
- do not render cropper when using files
  • Loading branch information
ebess committed May 15, 2019
1 parent 88b1ff6 commit 3881a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/Gallery.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="gallery" :class="{editable}">
<cropper v-if="editable" :image="cropImage" @close="cropImage = null" @crop-completed="onCroppedImage" :configs="field.croppingConfigs"/>
<cropper v-if="field.type === 'media' && editable" :image="cropImage" @close="cropImage = null" @crop-completed="onCroppedImage" :configs="field.croppingConfigs"/>

<component :is="draggable ? 'draggable' : 'div'" v-if="images.length > 0" v-model="images"
class="gallery-list clearfix">
Expand Down

0 comments on commit 3881a71

Please sign in to comment.