Library: Show file icon for sidecar files in Originals #1011

This commit is contained in:
Michael Mayer 2021-02-07 20:10:34 +01:00
parent 94132de245
commit 89f9229c6a

View file

@ -112,10 +112,12 @@ export class File extends RestModel {
}
thumbnailUrl(size) {
if (this.Error) {
if (this.Error || this.Missing) {
return "/api/v1/svg/broken";
} else if (this.Type === "raw") {
return "/api/v1/svg/raw";
} else if (this.Sidecar) {
return "/api/v1/svg/file";
}
return `/api/v1/t/${this.Hash}/${config.previewToken()}/${size}`;