mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Fix collabora app installed check and set the right action name
This commit is contained in:
parent
7522e7615f
commit
26214a3aa3
@ -818,7 +818,7 @@ class mail_hooks
|
|||||||
'value' => 'downloadAllToZip'
|
'value' => 'downloadAllToZip'
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
if (file_exists(EGW_SERVER_ROOT.'/collabora'))
|
if (!empty($GLOBALS['egw_info']['user']['apps']['collabora']))
|
||||||
{
|
{
|
||||||
$actions['collabora'] = [
|
$actions['collabora'] = [
|
||||||
'id' => 'collabora',
|
'id' => 'collabora',
|
||||||
|
@ -1143,7 +1143,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
if (egw.preference('document_doubleclick_action', 'filemanager') === 'collabora')
|
if (egw.preference('document_doubleclick_action', 'filemanager') === 'collabora')
|
||||||
{
|
{
|
||||||
_item.actions = 'downloadOneAsFile';
|
_item.actions = 'collabora';
|
||||||
_item.actionsDefaultLabel = 'Collabora';
|
_item.actionsDefaultLabel = 'Collabora';
|
||||||
}
|
}
|
||||||
sel_options.attachmentsBlock[_item.attachment_number + "[actions]"] = [...actions, collabora];
|
sel_options.attachmentsBlock[_item.attachment_number + "[actions]"] = [...actions, collabora];
|
||||||
|
Loading…
Reference in New Issue
Block a user