mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Consider fw_mobile_app_list only for mobile devices, compact theme still should be able to show all apps.
This commit is contained in:
parent
57b92c29de
commit
525a5ced2a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user