Skip to content

Commit

Permalink
fix: keep empty eleemt when no children defined as user_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejmarszal authored and tikhanovichA committed Jul 10, 2024
1 parent 5aa8d12 commit 12c54a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actions/class.Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,16 @@ private function getNavigationElementsByGroup($groupId)
}
$entries[$i] = $entry;
}

//We want to always keep user settings menu dropdown even if there is no children to place logout button.
if (empty($children) && $perspective->getId() === 'user_settings') {
$entry = [
'perspective' => $perspective,
'children' => []
];

$entries[$i] = $entry;
}
}
return $entries;
}
Expand Down

0 comments on commit 12c54a3

Please sign in to comment.