diff --git a/client/components/app/ConfigSideNav.vue b/client/components/app/ConfigSideNav.vue
index b42a560ea3..df6778c34f 100644
--- a/client/components/app/ConfigSideNav.vue
+++ b/client/components/app/ConfigSideNav.vue
@@ -112,6 +112,14 @@ export default {
}
]
+ if (this.$store.state.pluginsEnabled) {
+ configRoutes.push({
+ id: 'config-plugins',
+ title: 'Plugins',
+ path: '/config/plugins'
+ })
+ }
+
if (this.currentLibraryId) {
configRoutes.push({
id: 'library-stats',
diff --git a/client/components/prompt/Confirm.vue b/client/components/prompt/Confirm.vue
index 032190cf5f..4e11ce4594 100644
--- a/client/components/prompt/Confirm.vue
+++ b/client/components/prompt/Confirm.vue
@@ -7,6 +7,14 @@
+
{{ $strings.ButtonCancel }}
@@ -25,7 +33,8 @@ export default {
return {
el: null,
content: null,
- checkboxValue: false
+ checkboxValue: false,
+ formData: {}
}
},
watch: {
@@ -61,6 +70,9 @@ export default {
persistent() {
return !!this.confirmPromptOptions.persistent
},
+ formFields() {
+ return this.confirmPromptOptions.formFields || []
+ },
checkboxLabel() {
return this.confirmPromptOptions.checkboxLabel
},
@@ -100,11 +112,31 @@ export default {
this.show = false
},
confirm() {
- if (this.callback) this.callback(true, this.checkboxValue)
+ if (this.callback) {
+ if (this.formFields.length) {
+ const formFieldData = {
+ ...this.formData
+ }
+
+ this.callback(true, formFieldData)
+ } else {
+ this.callback(true, this.checkboxValue)
+ }
+ }
this.show = false
},
setShow() {
this.checkboxValue = this.checkboxDefaultValue
+
+ if (this.formFields.length) {
+ this.formFields.forEach((field) => {
+ let defaultValue = ''
+ if (field.type === 'boolean') defaultValue = false
+ if (field.type === 'select') defaultValue = field.options[0].value
+ this.$set(this.formData, field.name, defaultValue)
+ })
+ }
+
this.$eventBus.$emit('showing-prompt', true)
document.body.appendChild(this.el)
setTimeout(() => {
diff --git a/client/components/ui/ContextMenuDropdown.vue b/client/components/ui/ContextMenuDropdown.vue
index 52a5c2e2ba..693fbad0cb 100644
--- a/client/components/ui/ContextMenuDropdown.vue
+++ b/client/components/ui/ContextMenuDropdown.vue
@@ -31,6 +31,7 @@