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

31 lines
608 B

import { Template } from 'meteor/templating';
Template.contextualBar.events({
'click .js-close'(e, t) {
t.tabBar.close();
},
});
Template.contextualBar.onCreated(function() {
this.tabBar = Template.currentData().tabBar;
});
Template.contextualBar.helpers({
id() {
return Template.instance().tabBar.getId();
},
template() {
return Template.instance().tabBar.getTemplate();
},
headerData() {
return Template.instance().tabBar.getData();
},
flexData() {
const { tabBar } = Template.instance();
return {
tabBar,
...tabBar.getData(),
...Template.currentData().data,
};
},
});