diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue
index c8280527..90cdb8e4 100644
--- a/src/components/panels/HistoryListPanel.vue
+++ b/src/components/panels/HistoryListPanel.vue
@@ -61,7 +61,10 @@
:class="'file-list-cursor user-select-none '+(item.exists ? '' : 'text--disabled')"
>
-
+
+ mdi-file-cancel
+
+
@@ -81,7 +84,7 @@
- {{ item.exists ? "mdi-file" : "mdi-file-cancel" }}
+ mdi-file
|
{{ item.filename }} |
@@ -443,7 +446,12 @@ import VueLoadImage from 'vue-load-image'
thumb.height >= 32 && thumb.height <= 64
)
- if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+thumbnail.relative_path
+ let relative_url = ""
+ if (item.filename.lastIndexOf("/") !== -1) {
+ relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
+ }
+
+ if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
}
return false
@@ -456,7 +464,12 @@ import VueLoadImage from 'vue-load-image'
) {
const thumbnail = item.metadata.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
- if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+thumbnail.relative_path
+ let relative_url = ""
+ if (item.filename.lastIndexOf("/") !== -1) {
+ relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
+ }
+
+ if (thumbnail && 'relative_path' in thumbnail) return this.baseUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
}
return false