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/packages/rocketchat-ui/client/views/cmsPage.js

25 lines
513 B

Template.cmsPage.onCreated(function() {
this.page = new ReactiveVar('');
return Meteor.autorun(() => {
const cmsPage = Session.get('cmsPage');
if (cmsPage != null) {
return this.page.set(RocketChat.settings.get(cmsPage));
}
});
});
Template.cmsPage.helpers({
page() {
return Template.instance().page.get();
}
});
Template.cmsPage.events({
'click .cms-page-close'() {
return FlowRouter.go('/');
}
});
Template.cmsPage.onRendered(function() {
return $('#initial-page-loading').remove();
});