import { settingsRegistry } from '.'; export const createSoundsSettings = () => settingsRegistry.addGroup('CustomSoundsFilesystem', async function () { await this.add('CustomSounds_Storage_Type', 'GridFS', { type: 'select', values: [ { key: 'GridFS', i18nLabel: 'GridFS', }, { key: 'FileSystem', i18nLabel: 'FileSystem', }, ], i18nLabel: 'FileUpload_Storage_Type', }); await this.add('CustomSounds_FileSystemPath', '', { type: 'string', enableQuery: { _id: 'CustomSounds_Storage_Type', value: 'FileSystem', }, i18nLabel: 'FileUpload_FileSystemPath', }); });