mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix #1635
This commit is contained in:
@@ -16,15 +16,21 @@ habitrpg.controller('MenuCtrl',
|
|||||||
}
|
}
|
||||||
|
|
||||||
$scope.gotoOptions = function(){
|
$scope.gotoOptions = function(){
|
||||||
$scope.viewingOptions = true;
|
|
||||||
$location.path('/options');
|
$location.path('/options');
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.gotoTasks = function(){
|
$scope.gotoTasks = function(){
|
||||||
$scope.viewingOptions = false;
|
|
||||||
$location.path('/tasks')
|
$location.path('/tasks')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.$on('$routeChangeSuccess', function(ev, current) {
|
||||||
|
if(current.$$route.originalPath === "/tasks"){
|
||||||
|
$scope.viewingOptions = false;
|
||||||
|
}else if(current.$$route.originalPath === "/options"){
|
||||||
|
$scope.viewingOptions = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//FIXME where to implement this in rewrite?
|
//FIXME where to implement this in rewrite?
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
h1.task-action-btn.tile.solid.user-reporter {{username(user.auth, user.profile.name)}}
|
h1.task-action-btn.tile.solid.user-reporter {{username(user.auth, user.profile.name)}}
|
||||||
ul.flyout-content.nav.stacked
|
ul.flyout-content.nav.stacked
|
||||||
li
|
li
|
||||||
a.task-action-btn.tile.solid(x-bind='click:toggleGamePane')
|
a.task-action-btn.tile.solid
|
||||||
span(ng-show='viewingOptions', ng-click='gotoTasks()')
|
span(ng-show='viewingOptions', ng-click='gotoTasks()')
|
||||||
i.icon-ok
|
i.icon-ok
|
||||||
| Tasks
|
| Tasks
|
||||||
|
|||||||
Reference in New Issue
Block a user