mirror of
https://github.com/donl/meteor-ionic.git
synced 2026-05-26 22:06:41 -06:00
25 lines
515 B
JavaScript
25 lines
515 B
JavaScript
Template.ionSubheaderBar.rendered = function () {
|
|
Session.set('hasSubheader', true);
|
|
};
|
|
|
|
Template.ionSubheaderBar.destroyed = function () {
|
|
Session.set('hasSubheader', false);
|
|
};
|
|
|
|
Template.ionSubheaderBar.helpers({
|
|
classes: function () {
|
|
var classes = ['bar', 'bar-subheader'];
|
|
|
|
if (this.class) {
|
|
classes.push(this.class);
|
|
} else {
|
|
classes.push('bar-stable');
|
|
}
|
|
|
|
if (Session.get('hasTabsTop')) {
|
|
classes.push('has-tabs-top');
|
|
}
|
|
|
|
return classes.join(' ');
|
|
}
|
|
});
|