Merge pull request #10293 from vvlladd28/bug/image-gallery/cache-image

Fixed incorrect cache when open preview public image
This commit is contained in:
Igor Kulikov 2024-03-06 16:36:42 +02:00 committed by GitHub
commit 8df0cabb52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ export class ImageDialogComponent extends
this.image = data.image;
this.readonly = data.readonly;
this.imagePreviewData = {
url: this.image.public ? this.image.publicLink : this.image.link
url: this.image.link
};
}
@ -155,8 +155,6 @@ export class ImageDialogComponent extends
let url;
if (result.base64) {
url = result.base64;
} else if (this.image.public) {
url = `${this.image.publicLink}?ts=${new Date().getTime()}`;
} else {
url = this.image.link;
}