The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/settings/custom-sounds.ts

28 lines
662 B

import { settingsRegistry } from '../../app/settings/server';
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',
});
});