mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-13 01:57:09 +02:00
fix icon in et2-vfs-path and also get it to display "/" for the root
This commit is contained in:
@ -87,6 +87,24 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
|
||||
userData.apps[_app] : userData.apps[_app][_name];
|
||||
},
|
||||
|
||||
/**
|
||||
* Same as app(), but use the translated app-name / title
|
||||
*
|
||||
* @param {string} _title
|
||||
* @param {string} _name attribute to return, default return whole app-data-object
|
||||
*/
|
||||
appByTitle: function(_title, _name)
|
||||
{
|
||||
for(const app in userData.apps)
|
||||
{
|
||||
if (userData.apps[app].title === _title)
|
||||
{
|
||||
return typeof _name == 'undefined' || typeof userData.apps[app] == 'undefined' ?
|
||||
userData.apps[app] : userData.apps[app][_name];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get a list of accounts the user has access to
|
||||
* The list is filtered by type, one of 'accounts','groups','both', 'owngroups'
|
||||
|
Reference in New Issue
Block a user