File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/components/modals/views Expand file tree Collapse file tree 1 file changed +7
-3
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; setImgUrl();} " ></cropper-module >
16+ v-on:closeCropper =" closeCropper " ></cropper-module >
1717 </template >
1818 <template v-else >
1919 <img v-bind:src =" imgUrl"
@@ -98,8 +98,12 @@ export default {
9898 return this .$store .state .fm .settings .cropExtensions .includes (extension .toLowerCase ());
9999 },
100100 setImgUrl () {
101- this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ + new Date } ` ;
102- }
101+ this .imgUrl = ` ${ this .$store .getters [' fm/settings/baseUrl' ]} preview?disk=${ this .selectedDisk } &path=${ encodeURIComponent (this .selectedItem .path )} &v=${ this .selectedItem .timestamp } ` ;
102+ },
103+ closeCropper () {
104+ this .showCropperModule = false ;
105+ this .setImgUrl ();
106+ },
103107 },
104108};
105109 </script >
You can’t perform that action at this time.
0 commit comments