mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +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',
|
||||||
'glyphicon-comment inactive',
|
'glyphicon-comment inactive',
|
||||||
'glyphicon-question-sign',
|
'glyphicon-question-sign',
|
||||||
'glyphicon glyphicon-ok-sign'
|
'glyphicon-ok-sign'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.hasNoNotifications = function() {
|
$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) {
|
$scope.viewGroupApprovalNotification = function (notification, $index) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
restrict: 'A',
|
restrict: 'A',
|
||||||
link: function($scope, element, attrs) {
|
link: function($scope, element, attrs) {
|
||||||
element.on('click', function(event) {
|
element.on('click', function(event) {
|
||||||
if ($scope.$parent._expandedMenu) {
|
if ($scope.$parent && $scope.$parent._expandedMenu) {
|
||||||
$scope.$parent._expandedMenu.menu = null;
|
$scope.$parent._expandedMenu.menu = null;
|
||||||
}
|
}
|
||||||
if ($scope._expandedMenu) {
|
if ($scope._expandedMenu) {
|
||||||
|
|||||||
Reference in New Issue
Block a user