Library: Show file icon for sidecar files in Originals #1011
This commit is contained in:
parent
94132de245
commit
89f9229c6a
1 changed files with 3 additions and 1 deletions
|
@ -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}`;
|
||||
|
|
Loading…
Reference in a new issue