From 3784d8e9c0e56bc884e8072b7aef4ac00f847bf6 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 27 Nov 2021 23:31:34 +0100 Subject: [PATCH] fix: add path to add gcode files in subdirs to query Signed-off-by: Stefan Dej --- src/components/panels/GcodefilesPanel.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/panels/GcodefilesPanel.vue b/src/components/panels/GcodefilesPanel.vue index 86e97d79..dbfc5772 100644 --- a/src/components/panels/GcodefilesPanel.vue +++ b/src/components/panels/GcodefilesPanel.vue @@ -969,7 +969,11 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) { } addToQueue(item: FileStateFile) { - this.$store.dispatch('server/jobQueue/addToQueue', [item.filename]) + let path = this.currentPath.slice(7) + if (path != '') path += '/' + const filename = path+item.filename + + this.$store.dispatch('server/jobQueue/addToQueue', [filename]) } changeMetadataVisible(name: string) {