Calendar: Allow calendar integration to specify a caption, not just use app name

This commit is contained in:
nathan 2023-01-24 16:11:49 -07:00
parent 4e5f68f97c
commit c7020c79d8

View File

@ -406,7 +406,7 @@ class calendar_uiviews extends calendar_ui
$img = self::integration_get_icons($app, null, [])[0];
preg_match('/<img src=\"(.*?)\".*\/>/', $img, $results);
$actions['integration_'.$app] = array(
'caption' => $app,
'caption' => $data['selects']['caption'] ?? $app,
'iconUrl' => $results[1] ?: "$app\navbar",
'checkbox' => true,
'hint' => lang("show %1 from %2", lang(Link::get_registry($app, 'entries') ?: 'entries'), lang(Link::get_registry($app, 'name'))),