Browse Source

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

Fixed incorrect cache when open preview public image
pull/10316/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
8df0cabb52
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      ui-ngx/src/app/shared/components/image/image-dialog.component.ts

4
ui-ngx/src/app/shared/components/image/image-dialog.component.ts

@ -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;
}

Loading…
Cancel
Save