fixed defect
@@ -59,7 +59,7 @@ function genTopnavConf() {
<li ng-show="!self.loggedIn">
<a class="topnav__button"
ng-click="self.showLogin()"
- ng-class="{'open' : self.open}">
+ ng-class="{'open' : !self.focusSignup && self.open}">
<span class="topnav__button__caption__always">Sign in</span>
<img src="generated/icon-sprite.svg#ico16_arrow_down"
ng-show="!self.open" class="topnav__carret">
@@ -82,7 +82,7 @@ function genTopnavConf() {
</nav>
- <nav class="loginOverlay" ng-show="self.open && !self.loggedIn">
+ <nav class="loginOverlay" ng-show="!self.focusSignup && self.open && !self.loggedIn">
<div class="lo__inner">
<div class="lo__inner__right">
<won-login open="self.open"></won-login>
@@ -91,7 +91,7 @@ function genTopnavConf() {
</nav>
- <nav class="loginOverlay" ng-show="self.open && self.loggedIn">
+ <nav class="loginOverlay" ng-show="!self.focusSignup && self.open && self.loggedIn">
<div class="lo__inner">
<div class="lo__inner__right">
<won-logout open="self.open"></won-logout>
@@ -128,6 +128,7 @@ function genTopnavConf() {
loginVisible: state.get('loginVisible'),
open: state.get('loginVisible'), // TODO interim while transition to redux-state based solution (i.e. "loginVisible")
loggedIn: state.getIn(['user', 'loggedIn']),
+ focusSignup: state.getIn(['router', 'currentParams', 'focusSignup']) === "true",
email: state.getIn(['user','email']),
toastsArray: state.getIn(['toasts']).toArray(),
connectionHasBeenLost: state.getIn(['messages', 'lostConnection']), // name chosen to avoid name-clash with the action-creator
