Skip to content

Commit

Permalink
feat(webui): library option to import local artwork
Browse files Browse the repository at this point in the history
  • Loading branch information
gotson committed Aug 14, 2020
1 parent eefb802 commit cba0a2e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions komga-webui/src/components/dialogs/LibraryEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@
/>
</v-col>
</v-row>
<v-row>
<v-col>
<span class="text-subtitle-2">Import local media assets</span>
<v-checkbox
v-model="form.importLocalArtwork"
label="Local artwork"
hide-details
/>
</v-col>
</v-row>
<v-row>
<v-col cols="auto">
<span class="text-subtitle-2">Scanner</span>
Expand Down Expand Up @@ -178,6 +188,7 @@ export default Vue.extend({
importComicInfoCollection: true,
importEpubBook: true,
importEpubSeries: true,
importLocalArtwork: true,
scanForceModifiedTime: false,
scanDeep: false,
},
Expand Down Expand Up @@ -245,6 +256,7 @@ export default Vue.extend({
this.form.importComicInfoCollection = library ? library.importComicInfoCollection : true
this.form.importEpubBook = library ? library.importEpubBook : true
this.form.importEpubSeries = library ? library.importEpubSeries : true
this.form.importLocalArtwork = library ? library.importLocalArtwork : true
this.form.scanForceModifiedTime = library ? library.scanForceModifiedTime : false
this.form.scanDeep = library ? library.scanDeep : false
this.$v.$reset()
Expand All @@ -261,6 +273,7 @@ export default Vue.extend({
importComicInfoCollection: this.form.importComicInfoCollection,
importEpubBook: this.form.importEpubBook,
importEpubSeries: this.form.importEpubSeries,
importLocalArtwork: this.form.importLocalArtwork,
scanForceModifiedTime: this.form.scanForceModifiedTime,
scanDeep: this.form.scanDeep,
}
Expand Down
3 changes: 3 additions & 0 deletions komga-webui/src/types/komga-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface LibraryCreationDto {
importComicInfoCollection: boolean,
importEpubBook: boolean,
importEpubSeries: boolean,
importLocalArtwork: boolean,
scanForceModifiedTime: boolean,
scanDeep: boolean
}
Expand All @@ -18,6 +19,7 @@ interface LibraryUpdateDto {
importComicInfoCollection: boolean,
importEpubBook: boolean,
importEpubSeries: boolean,
importLocalArtwork: boolean,
scanForceModifiedTime: boolean,
scanDeep: boolean
}
Expand All @@ -31,6 +33,7 @@ interface LibraryDto {
importComicInfoCollection: boolean,
importEpubBook: boolean,
importEpubSeries: boolean,
importLocalArtwork: boolean,
scanForceModifiedTime: boolean,
scanDeep: boolean
}

0 comments on commit cba0a2e

Please sign in to comment.