Merge pull request #10293 from vvlladd28/bug/image-gallery/cache-image
Fixed incorrect cache when open preview public image
This commit is contained in:
commit
8df0cabb52
@ -66,7 +66,7 @@ export class ImageDialogComponent extends
|
|||||||
this.image = data.image;
|
this.image = data.image;
|
||||||
this.readonly = data.readonly;
|
this.readonly = data.readonly;
|
||||||
this.imagePreviewData = {
|
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;
|
let url;
|
||||||
if (result.base64) {
|
if (result.base64) {
|
||||||
url = result.base64;
|
url = result.base64;
|
||||||
} else if (this.image.public) {
|
|
||||||
url = `${this.image.publicLink}?ts=${new Date().getTime()}`;
|
|
||||||
} else {
|
} else {
|
||||||
url = this.image.link;
|
url = this.image.link;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user