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
850 B

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