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/ui/client/components/header/header.js

21 lines
462 B

import { Template } from 'meteor/templating';
import { fireGlobalEvent } from '../../../../ui-utils';
import './header.html';
Template.header.helpers({
back() {
return Template.instance().data.back;
},
buttons() {
console.log('asdasd');
},
});
Template.header.events({
'click .iframe-toolbar .js-iframe-action'(e) {
fireGlobalEvent('click-toolbar-button', { id: this.id });
e.currentTarget.querySelector('button').blur();
return false;
},
});