mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Add "Invite to call" action for inviting users into an existing call
This commit is contained in:
parent
42b78ab708
commit
79f8079150
@ -592,6 +592,13 @@ class addressbook_ui extends addressbook_bo
|
||||
'onExecute' => 'javaScript:app.addressbook.videoconference_actionCall',
|
||||
'enabled' => 'javaScript:app.addressbook.videoconference_isUserOnline'
|
||||
],
|
||||
'invite' => [
|
||||
'caption' => lang('Invite to Call'),
|
||||
'icon' => 'status/videoconference_join',
|
||||
'allowOnMultiple' => true,
|
||||
'onExecute' => 'javaScript:app.addressbook.videoconference_actionCall',
|
||||
'enabled' => 'javaScript:app.addressbook.videoconference_isThereAnyCall'
|
||||
],
|
||||
'schedule_call' => [
|
||||
'caption' => lang('Schedule a video conference'),
|
||||
'icon' => 'calendar',
|
||||
|
@ -1104,6 +1104,9 @@ var AddressbookApp = /** @class */ (function (_super) {
|
||||
}
|
||||
return true;
|
||||
};
|
||||
AddressbookApp.prototype.videoconference_isThereAnyCall = function (_action, _selected) {
|
||||
return this.videoconference_isUserOnline(_action, _selected) && egw.getSessionItem('status', 'videoconference-session');
|
||||
};
|
||||
/**
|
||||
* Call action
|
||||
* @param _action
|
||||
@ -1119,7 +1122,12 @@ var AddressbookApp = /** @class */ (function (_super) {
|
||||
avatar: "account:" + row.data.account_id
|
||||
});
|
||||
}
|
||||
if (_action.id == 'invite') {
|
||||
app.status.inviteToCall(data, egw.getSessionItem('status', 'videoconference-session'));
|
||||
}
|
||||
else {
|
||||
app.status.makeCall(data);
|
||||
}
|
||||
};
|
||||
return AddressbookApp;
|
||||
}(egw_app_1.EgwApp));
|
||||
|
@ -1343,6 +1343,11 @@ class AddressbookApp extends EgwApp
|
||||
return true;
|
||||
}
|
||||
|
||||
private videoconference_isThereAnyCall(_action, _selected)
|
||||
{
|
||||
return this.videoconference_isUserOnline(_action, _selected) && egw.getSessionItem('status', 'videoconference-session');
|
||||
}
|
||||
|
||||
/**
|
||||
* Call action
|
||||
* @param _action
|
||||
@ -1360,8 +1365,15 @@ class AddressbookApp extends EgwApp
|
||||
avatar: "account:"+row.data.account_id
|
||||
});
|
||||
}
|
||||
if (_action.id == 'invite')
|
||||
{
|
||||
app.status.inviteToCall(data, egw.getSessionItem('status', 'videoconference-session'));
|
||||
}
|
||||
else
|
||||
{
|
||||
app.status.makeCall(data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user