diff --git a/client/components/modals/libraries/EditLibrary.vue b/client/components/modals/libraries/EditLibrary.vue index cad3be6a..5cb8e794 100644 --- a/client/components/modals/libraries/EditLibrary.vue +++ b/client/components/modals/libraries/EditLibrary.vue @@ -6,7 +6,14 @@
- +
+
+ +
+
+ +
+

Folders

@@ -42,6 +49,7 @@ export default { data() { return { name: '', + provider: '', folders: [], showDirectoryPicker: false } @@ -62,6 +70,9 @@ export default { var origfolderpaths = this.library.folders.map((f) => f.fullPath).join(',') return newfolderpaths === origfolderpaths && this.name === this.library.name + }, + providers() { + return this.$store.state.scanners.providers } }, methods: { @@ -75,6 +86,7 @@ export default { }, init() { this.name = this.library ? this.library.name : '' + this.provider = this.library ? this.library.provider : '' this.folders = this.library ? this.library.folders.map((p) => ({ ...p })) : [] this.showDirectoryPicker = false }, @@ -100,6 +112,7 @@ export default { } var newLibraryPayload = { name: this.name, + provider: this.provider, folders: this.folders } @@ -132,6 +145,7 @@ export default { } var newLibraryPayload = { name: this.name, + provider: this.provider, folders: this.folders } diff --git a/client/components/ui/Dropdown.vue b/client/components/ui/Dropdown.vue index 808c1669..e15d16b5 100644 --- a/client/components/ui/Dropdown.vue +++ b/client/components/ui/Dropdown.vue @@ -1,7 +1,7 @@