mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Don't show calendar integrated videoconference action if videoconference is disabled or BBB is not configured
This commit is contained in:
parent
41ab849ecc
commit
d8e892f7cf
@ -377,20 +377,24 @@ class calendar_uiviews extends calendar_ui
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add toggle for video calls
|
// Don't show videoconference action if videoconference is disabled or BBB is not configured
|
||||||
$status_config = Api\Config::read("status");
|
if (\EGroupware\Status\Hooks::isVCRecordingSupported() && !EGroupware\Status\Hooks::isVideoconferenceDisabled())
|
||||||
if($status_config["status_cat_videocall"])
|
|
||||||
{
|
{
|
||||||
$actions['video_toggle'] = array(
|
// Add toggle for video calls
|
||||||
'caption' => 'Video call',
|
$status_config = Api\Config::read("status");
|
||||||
'iconUrl' => Image::find('status', 'videoconference_call'),
|
if($status_config["status_cat_videocall"])
|
||||||
'checkbox' => true,
|
{
|
||||||
'hint' => lang("video call"),
|
$actions['video_toggle'] = array(
|
||||||
'group' => 'integration',
|
'caption' => 'Video call',
|
||||||
'onExecute' => 'javaScript:app.calendar.toolbar_videocall_toggle_action',
|
'iconUrl' => Image::find('status', 'videoconference_call'),
|
||||||
'checked' => in_array('video_toggle', (array)$this->cal_prefs['integration_toggle']),
|
'checkbox' => true,
|
||||||
'data' => array('toggle_off' => '0', 'toggle_on' => '1')
|
'hint' => lang("video call"),
|
||||||
);
|
'group' => 'integration',
|
||||||
|
'onExecute' => 'javaScript:app.calendar.toolbar_videocall_toggle_action',
|
||||||
|
'checked' => in_array('video_toggle', (array)$this->cal_prefs['integration_toggle']),
|
||||||
|
'data' => array('toggle_off' => '0', 'toggle_on' => '1')
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add integrated app options
|
// Add integrated app options
|
||||||
|
Loading…
Reference in New Issue
Block a user