mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 01:40:53 -04:00
Revert "fix(files): do not even try to fetch a preview if èhas-preview` is false"
This reverts commit 1b80db3bef.
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
e8ee8d3a27
commit
d48aec9eed
1 changed files with 0 additions and 12 deletions
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
<!-- Decorative image, should not be aria documented -->
|
||||
<img v-else-if="previewUrl && backgroundFailed !== true"
|
||||
:key="source.fileid"
|
||||
ref="previewImg"
|
||||
alt=""
|
||||
class="files-list__row-icon-preview"
|
||||
|
|
@ -135,17 +134,6 @@ export default Vue.extend({
|
|||
return null
|
||||
}
|
||||
|
||||
if (this.source.attributes['has-preview'] !== true
|
||||
&& this.source.mime !== undefined
|
||||
&& this.source.mime !== 'application/octet-stream'
|
||||
) {
|
||||
const previewUrl = generateUrl('/core/mimeicon?mime={mime}', {
|
||||
mime: this.source.mime,
|
||||
})
|
||||
const url = new URL(window.location.origin + previewUrl)
|
||||
return url.href
|
||||
}
|
||||
|
||||
try {
|
||||
const previewUrl = this.source.attributes.previewUrl
|
||||
|| generateUrl('/core/preview?fileId={fileid}', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue