Skip to content

Commit

Permalink
Merge pull request #1214 from nextcloud-libraries/feat/ConflictPicker…
Browse files Browse the repository at this point in the history
…-refresh-preview-on-etag-change

feat(ConflictPicker): refresh preview on etag change
  • Loading branch information
susnux authored May 23, 2024
2 parents 7e94603 + d1122ff commit 2ad7463
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/components/NodesPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ export default defineComponent({
url.searchParams.set('x', PREVIEW_SIZE.toString())
url.searchParams.set('y', PREVIEW_SIZE.toString())
url.searchParams.set('mimeFallback', 'true')
// Etag to force refresh preview on change
const etag = node.attributes?.etag || ''
url.searchParams.set('v', etag.slice(0, 6))
return url.href
} catch (e) {
return null
Expand Down

0 comments on commit 2ad7463

Please sign in to comment.