Skip to content

Commit

Permalink
feat(webui): metadata import settings per library
Browse files Browse the repository at this point in the history
ability to edit libraries
move library add dialog to global instance

closes gotson#199
  • Loading branch information
gotson committed Jul 3, 2020
1 parent 6824212 commit 521cc42
Show file tree
Hide file tree
Showing 16 changed files with 432 additions and 193 deletions.
24 changes: 21 additions & 3 deletions komga-webui/src/components/Dialogs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
@deleted="collectionDeleted"
/>

<library-edit-dialog
v-model="editLibraryDialog"
:library="editLibrary"
/>

<library-delete-dialog
v-model="deleteLibraryDialog"
:library="deleteLibrary"
Expand All @@ -43,7 +48,11 @@
<script lang="ts">
import CollectionAddToDialog from '@/components/dialogs/CollectionAddToDialog.vue'
import CollectionDeleteDialog from '@/components/dialogs/CollectionDeleteDialog.vue'
import CollectionEditDialog from '@/components/dialogs/CollectionEditDialog.vue'
import EditBooksDialog from '@/components/dialogs/EditBooksDialog.vue'
import EditSeriesDialog from '@/components/dialogs/EditSeriesDialog.vue'
import LibraryDeleteDialog from '@/components/dialogs/LibraryDeleteDialog.vue'
import LibraryEditDialog from '@/components/dialogs/LibraryEditDialog.vue'
import {
BOOK_CHANGED,
bookToEventBookChanged,
Expand All @@ -57,16 +66,14 @@ import {
seriesToEventSeriesChanged,
} from '@/types/events'
import Vue from 'vue'
import EditBooksDialog from '@/components/dialogs/EditBooksDialog.vue'
import EditSeriesDialog from '@/components/dialogs/EditSeriesDialog.vue'
import CollectionEditDialog from '@/components/dialogs/CollectionEditDialog.vue'
export default Vue.extend({
name: 'Dialogs',
components: {
CollectionAddToDialog,
CollectionEditDialog,
CollectionDeleteDialog,
LibraryEditDialog,
LibraryDeleteDialog,
EditBooksDialog,
EditSeriesDialog,
Expand Down Expand Up @@ -105,6 +112,17 @@ export default Vue.extend({
deleteCollection (): CollectionDto {
return this.$store.state.deleteCollection
},
editLibraryDialog: {
get (): boolean {
return this.$store.state.editLibraryDialog
},
set (val) {
this.$store.dispatch('dialogEditLibraryDisplay', val)
},
},
editLibrary (): LibraryDto | undefined {
return this.$store.state.editLibrary
},
deleteLibraryDialog: {
get (): boolean {
return this.$store.state.deleteLibraryDialog
Expand Down
170 changes: 0 additions & 170 deletions komga-webui/src/components/dialogs/LibraryAddDialog.vue

This file was deleted.

0 comments on commit 521cc42

Please sign in to comment.