Skip to content

Commit

Permalink
Update file chooser handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-cheney committed Sep 25, 2017
1 parent dddfab2 commit c8de3b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<settings-menu @layoutchange="handleLayoutChange" @retinachange="handleRetinaChange" />
<collections-menu v-show="hasContent" :collections="collections" />
<main>
<welcome-screen v-show="!hasContent" :can-drop="canDrop" @fileschosen="_addFileList" />
<welcome-screen v-show="!hasContent" :can-drop="canDrop" @fileschosen="_handleFilesChosen" />
<loading-screen v-show="isLoading" />
<collection-viewer v-show="hasContent" :collections="collections" :scale-images="isScaledImageMode" />
</main>
Expand Down Expand Up @@ -87,6 +87,13 @@ export default class App extends Vue {
}
}
_handleFilesChosen(files: File[]): void {
this._addFileList({
name: '',
files: files,
});
}
_addFileList(fileCollection: FileCollection): Promise<void> {
// Filter out non-images and sort by file name.
const files = fileCollection.files
Expand Down

0 comments on commit c8de3b0

Please sign in to comment.