mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(menus): keep icon after group ack
Also corrects a TypeError in the menu closing function.
This commit is contained in:
@@ -108,12 +108,12 @@ angular.module('habitrpg')
|
||||
'glyphicon-comment',
|
||||
'glyphicon-comment inactive',
|
||||
'glyphicon-question-sign',
|
||||
'glyphicon glyphicon-ok-sign'
|
||||
'glyphicon-ok-sign'
|
||||
);
|
||||
};
|
||||
|
||||
$scope.hasNoNotifications = function() {
|
||||
return selectNotificationValue(false, false, false, false, false, true, false);
|
||||
return selectNotificationValue(false, false, false, false, false, true, false, false);
|
||||
};
|
||||
|
||||
$scope.viewGroupApprovalNotification = function (notification, $index) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
restrict: 'A',
|
||||
link: function($scope, element, attrs) {
|
||||
element.on('click', function(event) {
|
||||
if ($scope.$parent._expandedMenu) {
|
||||
if ($scope.$parent && $scope.$parent._expandedMenu) {
|
||||
$scope.$parent._expandedMenu.menu = null;
|
||||
}
|
||||
if ($scope._expandedMenu) {
|
||||
|
||||
Reference in New Issue
Block a user