remove unused state var open and loginVisible from stateselection
removed unused elements (were never displayed)
removed unnecessary ng-show => was always true
@@ -45,7 +45,6 @@ function genTopnavConf() {
<nav class="topnav">
-
<div class="topnav__inner">
<div class="topnav__inner__left">
<a href="{{ self.defaultRouteHRef(self.$state) }}"
@@ -63,8 +62,7 @@ function genTopnavConf() {
<li ng-show="!self.loggedIn">
<a ui-sref="{{ self.absSRef('signup') }}"
- class="topnav__signupbtn"
- ng-show="!self.open">
+ class="topnav__signupbtn">
Sign up
</a>
</li>
@@ -79,25 +77,6 @@ function genTopnavConf() {
</div>
</nav>
-
- <nav class="loginOverlay" ng-show="self.open && !self.loggedIn">
- <div class="lo__inner">
- <div class="lo__inner__right">
- <won-login open="self.open"></won-login>
- </div>
- </div>
- </nav>
-
-
- <nav class="loginOverlay" ng-show="self.open && self.loggedIn">
- <div class="lo__inner">
- <div class="lo__inner__right">
- <won-logout open="self.open"></won-logout>
- </div>
- </div>
- </nav>
-
-
<div class="topnav__toasts">
<div class="topnav__toasts__element"
ng-class="{ 'info' : toast.get('type') === self.WON.infoToast,
@@ -163,8 +142,6 @@ function genTopnavConf() {
appTitle: getIn(state, ['config', 'theme', 'title']),
adminEmail: getIn(state, ['config', 'theme', 'adminEmail']),
WON: won.WON,
- 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']),
email: state.getIn(['user','email']),
toastsArray: state.getIn(['toasts']).toArray(),
@@ -174,10 +151,6 @@ function genTopnavConf() {
connect2Redux(selectFromState, actionCreators, [], this);
}
-
- showLogin() {
- this.open = true;
- }
}
Controller.$inject = serviceDependencies;
