소스 검색

Fixed signout links from sidenav

Torkel Ödegaard 10 년 전
부모
커밋
f5f07bd552
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 0
      src/app/controllers/sidemenuCtrl.js
  2. 0 2
      src/app/partials/sidemenu.html

+ 2 - 0
src/app/controllers/sidemenuCtrl.js

@@ -53,6 +53,7 @@ function (angular, _, $, config) {
 
 
         $scope.bottomLinks.push({
         $scope.bottomLinks.push({
           text: "Sign out",
           text: "Sign out",
+          target: "_self",
           icon: "fa fa-fw fa-sign-out",
           icon: "fa fa-fw fa-sign-out",
           href: $scope.getUrl("/logout"),
           href: $scope.getUrl("/logout"),
         });
         });
@@ -90,6 +91,7 @@ function (angular, _, $, config) {
       $scope.bottomLinks.push({
       $scope.bottomLinks.push({
         text: "Sign out",
         text: "Sign out",
         icon: "fa fa-fw fa-sign-out",
         icon: "fa fa-fw fa-sign-out",
+        target: "_self",
         href: $scope.getUrl("/logout"),
         href: $scope.getUrl("/logout"),
       });
       });
     };
     };

+ 0 - 2
src/app/partials/sidemenu.html

@@ -28,7 +28,6 @@
 	</ul>
 	</ul>
 
 
 	<ul class="sidemenu sidemenu-small"  style="margin-top:50px">
 	<ul class="sidemenu sidemenu-small"  style="margin-top:50px">
-
 		<li ng-repeat="item in bottomLinks">
 		<li ng-repeat="item in bottomLinks">
 			<a href="{{item.href}}" class="sidemenu-item" target="{{item.target}}">
 			<a href="{{item.href}}" class="sidemenu-item" target="{{item.target}}">
 				<img ng-if="item.imgSrc" ng-src="{{item.imgSrc}}">
 				<img ng-if="item.imgSrc" ng-src="{{item.imgSrc}}">
@@ -36,6 +35,5 @@
 				<span class="sidemenu-item-text">{{item.text}}</span>
 				<span class="sidemenu-item-text">{{item.text}}</span>
 	   	</a>
 	   	</a>
 		</li>
 		</li>
-
 	</ul>
 	</ul>
 </div>
 </div>