Skip to content

Commit

Permalink
fix: adds missing metadata refresh code
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Jun 30, 2023
1 parent 3b54ece commit 5528e74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/widgets/filesystem/FileSystem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
@download="handleDownload"
@preheat="handlePreheat"
@preview-gcode="handlePreviewGcode"
@refresh-metadata="handleRefreshMetadata"
@view-thumbnail="handleViewThumbnail"
@enqueue="handleEnqueue"
@create-zip="handleCreateZip"
Expand Down Expand Up @@ -706,6 +707,10 @@ export default class FileSystem extends Mixins(StateMixin, FilesMixin, ServicesM
})
}
handleRefreshMetadata (file: AppFileWithMeta) {
SocketActions.serverFilesMetadata(`${this.visiblePath}/${file.filename}`)
}
async handleViewThumbnail (file: AppFileWithMeta) {
const thumb = this.getThumb(file.thumbnails ?? [], this.currentRoot, file.path, true)
Expand Down

0 comments on commit 5528e74

Please sign in to comment.