Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Fix resource icons/thumbnails only visible for clickable resources #2007

Merged
merged 2 commits into from
Mar 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/atoms/OcResourceIcon/OcResourceIcon.vue
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ export default {
return this.resource.isFolder
},
extension() {
return this.resource.extension.toLowerCase()
return this.resource.extension?.toLowerCase()
},
},
}
7 changes: 5 additions & 2 deletions src/components/organisms/OcResource/OcResource.vue
Original file line number Diff line number Diff line change
@@ -307,7 +307,8 @@ export default {
name: "Documents",
path: "/Documents",
indicators: [],
type: "folder"
type: "folder",
isFolder: true
}
},
notes() {
@@ -316,7 +317,8 @@ export default {
extension: "txt",
path: "Documents/notes.txt",
indicators: this.indicators,
type: "file"
type: "file",
isFolder: false
}
},
forest() {
@@ -327,6 +329,7 @@ export default {
thumbnail: "https://picsum.photos/200/300",
indicators: [],
type: "file",
isFolder: false,
opensInNewWindow: true,
}
},