Fix collabora app installed check and set the right action name

This commit is contained in:
Hadi Nategh 2023-02-07 09:47:58 +01:00
parent 7522e7615f
commit 26214a3aa3
2 changed files with 2 additions and 2 deletions

View File

@ -818,7 +818,7 @@ class mail_hooks
'value' => 'downloadAllToZip'
]
];
if (file_exists(EGW_SERVER_ROOT.'/collabora'))
if (!empty($GLOBALS['egw_info']['user']['apps']['collabora']))
{
$actions['collabora'] = [
'id' => 'collabora',

View File

@ -1143,7 +1143,7 @@ app.classes.mail = AppJS.extend(
{
if (egw.preference('document_doubleclick_action', 'filemanager') === 'collabora')
{
_item.actions = 'downloadOneAsFile';
_item.actions = 'collabora';
_item.actionsDefaultLabel = 'Collabora';
}
sel_options.attachmentsBlock[_item.attachment_number + "[actions]"] = [...actions, collabora];