Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix print start from dashboard for subdirectory files #2074

Merged
merged 3 commits into from
Dec 9, 2024
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
9 changes: 8 additions & 1 deletion src/components/panels/Status/GcodefilesEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</v-menu>
<start-print-dialog
:bool="showPrintDialog"
:file="item"
:file="startPrintItem"
:current-path="pathOfFile"
@closeDialog="showPrintDialog = false" />
<add-batch-to-queue-dialog
Expand Down Expand Up @@ -274,6 +274,13 @@ export default class StatusPanelGcodefilesEntry extends Mixins(BaseMixin, Contro
return this.item.filename.slice(this.item.filename.lastIndexOf('/') + 1)
}

get startPrintItem() {
const file = { ...this.item }
file.filename = this.filename

return file
}

showContextMenu(e: any) {
if (this.contextMenuShow) return

Expand Down
Loading