Consider fw_mobile_app_list only for mobile devices, compact theme still should be able to show all apps.

This commit is contained in:
Hadi Nategh 2018-01-03 14:15:17 +01:00
parent 57b92c29de
commit 525a5ced2a

View File

@ -351,6 +351,11 @@
var egw_script = document.getElementById('egw_script_id');
var apps = egw_script ? JSON.parse(egw_script.getAttribute('data-navbar-apps')) : null;
// fw_mobile_app_list should only be considered for mobile dvices
// therefore, compact theme still would show all available apps.
if (egwIsMobile())
{
var mobile_app_list = egw.config('fw_mobile_app_list') || this.DEFAULT_MOBILE_APP;
// Check if the given app is on mobile_app_list
@ -369,6 +374,8 @@
}
apps = default_apps;
}
this.loadApplications(apps);
}