1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-26 08:11:33 +00:00

[Web] add app hide option

This commit is contained in:
FreddleSpl0it
2023-03-10 15:53:09 +01:00
committed by DerLinkman
parent 415c1d0574
commit 6e35574c72
6 changed files with 64 additions and 8 deletions

View File

@@ -123,12 +123,14 @@ function customize($_action, $_item, $_data = null) {
$apps = (array)$_data['app'];
$links = (array)$_data['href'];
$user_links = (array)$_data['user_href'];
$hide = (array)$_data['hide'];
$out = array();
if (count($apps) == count($links) && count($apps) == count($user_links)) {
if (count($apps) == count($links) && count($apps) == count($user_links) && count($apps) == count($hide)) {
for ($i = 0; $i < count($apps); $i++) {
$out[] = array($apps[$i] => array(
'link' => $links[$i],
'user_link' => $user_links[$i]
'user_link' => $user_links[$i],
'hide' => ($hide[$i] === '0' || $hide[$i] === 0) ? false : true
));
}
try {