From de32698ea522fd0df92be9dab3a148b71be043c8 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 15 Feb 2022 14:59:46 -0600 Subject: [PATCH] Add:Metadata provider option to library --- .../components/modals/libraries/EditLibrary.vue | 16 +++++++++++++++- client/components/ui/Dropdown.vue | 2 +- server/objects/Library.js | 3 +++ 3 files changed, 19 insertions(+), 2 deletions(-) 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 @@