mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 17:00:45 +01:00
Add contextmenu action for calendar VC events in order to access recordings
This commit is contained in:
parent
87ff6842ea
commit
abf2cb56e2
@ -994,9 +994,17 @@ class calendar_uilist extends calendar_ui
|
|||||||
'join' => [
|
'join' => [
|
||||||
'caption' => 'Join',
|
'caption' => 'Join',
|
||||||
'icon' => 'status/videoconference_join',
|
'icon' => 'status/videoconference_join',
|
||||||
'onExecute' => 'javaScript:app.calendar.joinVideoConferenceAction',
|
'onExecute' => 'javaScript:app.calendar.videoConferenceAction',
|
||||||
'enabled' => !EGroupware\Status\Hooks::isVideoconferenceDisabled(),
|
'enabled' => !EGroupware\Status\Hooks::isVideoconferenceDisabled(),
|
||||||
'allowOnMultiple' => false,
|
'allowOnMultiple' => false,
|
||||||
|
],
|
||||||
|
'recordings' => [
|
||||||
|
'caption' => 'Recordings',
|
||||||
|
'icon' => 'status/videoconference_recordings',
|
||||||
|
'onExecute' => 'javaScript:app.calendar.videoConferenceAction',
|
||||||
|
'enabled' => !EGroupware\Status\Hooks::isVideoconferenceDisabled()
|
||||||
|
|| EGroupware\Status\Hooks::isVCRecordingSupported(),
|
||||||
|
'allowOnMultiple' => false,
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
@ -3646,9 +3646,15 @@ var CalendarApp = /** @class */ (function (_super) {
|
|||||||
* @param _action
|
* @param _action
|
||||||
* @param _sender
|
* @param _sender
|
||||||
*/
|
*/
|
||||||
CalendarApp.prototype.joinVideoConferenceAction = function (_action, _sender) {
|
CalendarApp.prototype.videoConferenceAction = function (_action, _sender) {
|
||||||
var data = egw.dataGetUIDdata(_sender[0].id)['data'];
|
var data = egw.dataGetUIDdata(_sender[0].id)['data'];
|
||||||
|
switch (_action.id) {
|
||||||
|
case 'recordings':
|
||||||
|
app.status.videoconference_getRecordings(data['##videoconference'], { cal_id: data['id'], title: data['title'] });
|
||||||
|
break;
|
||||||
|
case 'join':
|
||||||
return this.joinVideoConference(data['##videoconference'], data);
|
return this.joinVideoConference(data['##videoconference'], data);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* Join a videoconference
|
* Join a videoconference
|
||||||
|
@ -4527,12 +4527,18 @@ class CalendarApp extends EgwApp
|
|||||||
* @param _action
|
* @param _action
|
||||||
* @param _sender
|
* @param _sender
|
||||||
*/
|
*/
|
||||||
public joinVideoConferenceAction(_action : egwAction, _sender : egwActionObject[])
|
public videoConferenceAction(_action : egwAction, _sender : egwActionObject[])
|
||||||
{
|
{
|
||||||
let data = egw.dataGetUIDdata(_sender[0].id)['data'];
|
let data = egw.dataGetUIDdata(_sender[0].id)['data'];
|
||||||
|
switch(_action.id)
|
||||||
|
{
|
||||||
|
case 'recordings':
|
||||||
|
app.status.videoconference_getRecordings(data['##videoconference'],{cal_id: data['id'], title:data['title']});
|
||||||
|
break;
|
||||||
|
case 'join':
|
||||||
return this.joinVideoConference(data['##videoconference'], data);
|
return this.joinVideoConference(data['##videoconference'], data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Join a videoconference
|
* Join a videoconference
|
||||||
|
Loading…
Reference in New Issue
Block a user