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/client/startup/contextualBar/exportMessages.js

18 lines
464 B

import { Meteor } from 'meteor/meteor';
import { TabBar } from '../../../app/ui-utils/client';
import { hasAllPermission } from '../../../app/authorization/client';
Meteor.startup(() => {
TabBar.addButton({
groups: ['channel', 'group', 'direct'],
id: 'export-messages',
anonymous: true,
i18nTitle: 'Export_Messages',
icon: 'mail',
template: 'ExportMessages',
full: true,
order: 12,
condition: () => hasAllPermission('mail-messages'),
});
});