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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
3 deletions
-
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; |
|
|
|
} |
|
|
|
|