Add mail compose action for status app

This commit is contained in:
Hadi Nategh 2019-05-07 11:17:26 +02:00
parent 4dd62db0fc
commit a0a1326e6f
2 changed files with 17 additions and 0 deletions

View File

@ -693,4 +693,20 @@ class mail_hooks
}
return true;
}
/**
* Add mail related actions into status action
*
* @return array returns array of actions
*/
public static function get_status_actions ()
{
return [
'mail' => [
'caption' => 'Mail',
'allowOnMultiple' => false,
'onExecute' => 'javaScript:app.status.handle_actions',
]
];
}
}

View File

@ -36,6 +36,7 @@ $setup_info['mail']['hooks']['verify_settings'] = 'EGroupware\\Api\\Mail::forceP
$setup_info['mail']['hooks']['clear_cache'] = 'EGroupware\\Api\\Mail::unsetCachedObjects';
$setup_info['mail']['hooks']['check_notify'] = 'mail_hooks::notification_check_mailbox';
$setup_info['mail']['hooks']['emailadmin_edit'] = 'mail_hooks::emailadmin_edit';
$setup_info['mail']['hooks']['status-get_actions'] = 'mail_hooks::get_status_actions';
/* Dependencies for this app to work */
$setup_info['mail']['depends'][] = array(