File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/components/modals/views Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313 <template v-if =" showCropperModule " >
1414 <cropper-module v-bind:imgUrl =" imgUrl"
1515 v-bind:maxHeight =" maxHeight"
16- v-on:closeCropper =" showCropperModule = false" ></cropper-module >
16+ v-on:closeCropper =" () => { showCropperModule = false; setImgUrl();} " ></cropper-module >
1717 </template >
1818 <template v-else >
1919 <img v-bind:src =" imgUrl"
@@ -53,7 +53,7 @@ export default {
5353 },
5454 created () {
5555 // Create image URL
56- this .imgUrl = ` ${ this . $store . getters [ ' fm/settings/baseUrl ' ] } preview?disk= ${ this . selectedDisk } &path= ${ encodeURIComponent ( this . selectedItem . path ) } ` ;
56+ this .setImgUrl () ;
5757 },
5858 computed: {
5959 /**
@@ -97,6 +97,9 @@ export default {
9797 canCrop (extension ) {
9898 return this .$store .state .fm .settings .cropExtensions .includes (extension .toLowerCase ());
9999 },
100+ setImgUrl () {
101+ this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ + new Date } ` ;
102+ }
100103 },
101104};
102105 </script >
You can’t perform that action at this time.
0 commit comments