Skip to content

Commit

Permalink
proper functioning of sign in button
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Jan 18, 2019
1 parent 6f04cc2 commit 6aba29d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imports/ui/templates/layout/url/hero/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Meteor } from 'meteor/meteor';
import { $ } from 'meteor/jquery';
import { TAPi18n } from 'meteor/tap:i18n';
import { ReactiveVar } from 'meteor/reactive-var';
import { Session } from 'meteor/session';

import { timers } from '/lib/const';
import { resetSplit } from '/imports/ui/modules/split';
Expand Down Expand Up @@ -116,9 +117,10 @@ Template.navbar.helpers({
return 'images/earth.png';
},
loginMode() {
if (Template.instance().activeSignIn.get()) {
if (Session.get('userLoginVisible')) {
return 'hero-menu-link-signin-active';
}
Template.instance().activeSignIn.set(false);
return '';
},
});
Expand Down

0 comments on commit 6aba29d

Please sign in to comment.