fix: add path to add gcode files in subdirs to query

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2021-11-27 23:31:34 +01:00
parent ae1fa8736a
commit 3784d8e9c0
No known key found for this signature in database
GPG Key ID: 5D3A5823133D2246

View File

@ -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) {