accounts-ui not dependent on global {{currentUser}} handler

Specifically, we don't have an API for defining global handlers right
now (the old Handlebars.registerHelper). We still need to devise
a new pattern for this but in the meanwhile, this is a step towards
getting accounts-ui to work.
This commit is contained in:
Avital Oliver
2013-10-02 22:12:24 -07:00
parent 227aee3985
commit b24e54e3bf

View File

@@ -10,6 +10,10 @@ Handlebars.registerHelper(
return new Handlebars.SafeString(Template._loginButtons({align: "left"}));
});
Template._loginButtons.currentUser = function () {
return Meteor.userId();
};
// shared between dropdown and single mode
Template._loginButtons.events({
'click #login-buttons-logout': function() {