diff --git a/client/components/icons/audiobooks-svg.vue b/client/components/icons/audiobooks-svg.vue new file mode 100644 index 00000000..905c83cc --- /dev/null +++ b/client/components/icons/audiobooks-svg.vue @@ -0,0 +1,23 @@ + + + \ No newline at end of file diff --git a/client/components/icons/books-svg.vue b/client/components/icons/books-svg.vue new file mode 100644 index 00000000..b2e459a4 --- /dev/null +++ b/client/components/icons/books-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/client/components/icons/comics-svg.vue b/client/components/icons/comics-svg.vue new file mode 100644 index 00000000..30903253 --- /dev/null +++ b/client/components/icons/comics-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/client/components/icons/database-svg.vue b/client/components/icons/database-svg.vue new file mode 100644 index 00000000..10929b16 --- /dev/null +++ b/client/components/icons/database-svg.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/client/components/icons/podcasts-svg.vue b/client/components/icons/podcasts-svg.vue new file mode 100644 index 00000000..d025ab0d --- /dev/null +++ b/client/components/icons/podcasts-svg.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/client/components/modals/libraries/EditLibrary.vue b/client/components/modals/libraries/EditLibrary.vue index 9c437712..2e275b9f 100644 --- a/client/components/modals/libraries/EditLibrary.vue +++ b/client/components/modals/libraries/EditLibrary.vue @@ -6,11 +6,14 @@
-
-
+
+
-
+
+ +
+
@@ -18,7 +21,6 @@

Folders

- folder close @@ -60,6 +62,7 @@ export default { return { name: '', provider: '', + mediaType: '', folders: [], showDirectoryPicker: false, disableWatcher: false @@ -80,7 +83,7 @@ export default { var newfolderpaths = this.folderPaths.join(',') var origfolderpaths = this.library.folders.map((f) => f.fullPath).join(',') - return newfolderpaths === origfolderpaths && this.name === this.library.name && this.provider === this.library.provider && this.disableWatcher === this.library.disableWatcher + return newfolderpaths === origfolderpaths && this.name === this.library.name && this.provider === this.library.provider && this.disableWatcher === this.library.disableWatcher && this.mediaType === this.library.mediaType }, providers() { return this.$store.state.scanners.providers @@ -103,6 +106,7 @@ export default { this.provider = this.library ? this.library.provider : '' this.folders = this.library ? this.library.folders.map((p) => ({ ...p })) : [] this.disableWatcher = this.library ? !!this.library.disableWatcher : false + this.mediaType = this.library ? this.library.mediaType : 'default' this.showDirectoryPicker = false }, selectFolder(fullPath) { @@ -129,6 +133,8 @@ export default { name: this.name, provider: this.provider, folders: this.folders, + mediaType: this.mediaType, + icon: this.mediaType, disableWatcher: this.disableWatcher } @@ -163,6 +169,8 @@ export default { name: this.name, provider: this.provider, folders: this.folders, + mediaType: this.mediaType, + icon: this.mediaType, disableWatcher: this.disableWatcher } diff --git a/client/components/modals/libraries/LibraryItem.vue b/client/components/modals/libraries/LibraryItem.vue index 6f6b5e8a..d6ce9a04 100644 --- a/client/components/modals/libraries/LibraryItem.vue +++ b/client/components/modals/libraries/LibraryItem.vue @@ -1,9 +1,7 @@