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/app/logger/client/viewLogs.js

33 lines
823 B

import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
import { AdminBox } from '../../ui-utils';
import { hasAllPermission } from '../../authorization';
import { t } from '../../utils';
export const stdout = new Mongo.Collection('stdout');
Meteor.startup(function() {
AdminBox.addOption({
href: 'admin-view-logs',
i18nLabel: 'View_Logs',
icon: 'post',
permissionGranted() {
return hasAllPermission('view-logs');
},
});
});
FlowRouter.route('/admin/view-logs', {
name: 'admin-view-logs',
action() {
return BlazeLayout.render('main', {
center: 'pageSettingsContainer',
pageTitle: t('View_Logs'),
pageTemplate: 'viewLogs',
noScroll: true,
});
},
});