mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Add some hints to sharing actions
This commit is contained in:
parent
d24c6f2b7d
commit
0664df4921
@ -104,7 +104,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
$document['allowOnMultiple'] = true;
|
||||
$document['onExecute'] = "javaScript:app.$appname.share_merge";
|
||||
}
|
||||
$documents['enabled'] = !!($GLOBALS['egw_info']['user']['apps']['stylite']) ?
|
||||
$documents['enabled'] = (boolean)$documents['children'] && !!($GLOBALS['egw_info']['user']['apps']['stylite']) ?
|
||||
"javaScript:app.$appname.is_share_enabled" : false;
|
||||
$actions['share']['children']['shareDocuments'] = $documents;
|
||||
}
|
||||
|
@ -435,7 +435,8 @@ class Sharing
|
||||
'icon' => 'link',
|
||||
'order' => 11,
|
||||
'enabled' => "javaScript:app.$appname.is_share_enabled",
|
||||
'onExecute' => "javaScript:app.$appname.share_link"
|
||||
'onExecute' => "javaScript:app.$appname.share_link",
|
||||
'hint' => lang("Share this %1 via URL", Link::get_registry($appname, 'entry'))
|
||||
),
|
||||
'shareWritable' => array(
|
||||
'caption' => lang('Writable'),
|
||||
@ -443,14 +444,16 @@ class Sharing
|
||||
'icon' => 'edit',
|
||||
'allowOnMultiple' => true,
|
||||
'enabled' => "javaScript:app.$appname.is_share_enabled",
|
||||
'checkbox' => true
|
||||
'checkbox' => true,
|
||||
'hint' => lang("Allow editing the %1", Link::get_registry($appname, 'entry'))
|
||||
),
|
||||
'shareFiles' => array(
|
||||
'caption' => lang('Share files'),
|
||||
'group' => 2,
|
||||
'allowOnMultiple' => true,
|
||||
'enabled' => "javaScript:app.$appname.is_share_enabled",
|
||||
'checkbox' => true
|
||||
'checkbox' => true,
|
||||
'hint' => lang('Include access to any linked files (Links tab)')
|
||||
),
|
||||
'shareFilemanager' => array(
|
||||
'caption' => lang('Filemanager directory'),
|
||||
@ -458,7 +461,8 @@ class Sharing
|
||||
'icon' => 'link',
|
||||
'order' => 20,
|
||||
'enabled' => "javaScript:app.$appname.is_share_enabled",
|
||||
'onExecute' => "javaScript:app.$appname.share_link"
|
||||
'onExecute' => "javaScript:app.$appname.share_link",
|
||||
'hint' => lang('Share just the associated filemanager directory, not the %1', Link::get_registry($appname, 'entry'))
|
||||
),
|
||||
),
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user