|
|
@@ -11,6 +11,12 @@ const configSchema = {
|
|
|
type: 'object',
|
|
|
properties: {
|
|
|
collection: {
|
|
|
+ dynamicOptions: {
|
|
|
+ source: 'storage.collections',
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'name',
|
|
|
+ filter: {}
|
|
|
+ },
|
|
|
type: 'string',
|
|
|
title: 'Collection',
|
|
|
description: 'Collection to watch'
|
|
|
@@ -40,6 +46,12 @@ const configSchema = {
|
|
|
default: false
|
|
|
},
|
|
|
cursorCollection: {
|
|
|
+ dynamicOptions: {
|
|
|
+ source: 'storage.collections',
|
|
|
+ labelField: 'name',
|
|
|
+ valueField: 'name',
|
|
|
+ filter: { access: 'read-write' }
|
|
|
+ },
|
|
|
type: 'string',
|
|
|
title: 'Cursor Collection',
|
|
|
default: 'watch_cursors'
|