mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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',
|
'onExecute' => 'javaScript:app.addressbook.videoconference_actionCall',
|
||||||
'enabled' => 'javaScript:app.addressbook.videoconference_isUserOnline'
|
'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' => [
|
'schedule_call' => [
|
||||||
'caption' => lang('Schedule a video conference'),
|
'caption' => lang('Schedule a video conference'),
|
||||||
'icon' => 'calendar',
|
'icon' => 'calendar',
|
||||||
|
@ -1104,6 +1104,9 @@ var AddressbookApp = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
AddressbookApp.prototype.videoconference_isThereAnyCall = function (_action, _selected) {
|
||||||
|
return this.videoconference_isUserOnline(_action, _selected) && egw.getSessionItem('status', 'videoconference-session');
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* Call action
|
* Call action
|
||||||
* @param _action
|
* @param _action
|
||||||
@ -1119,7 +1122,12 @@ var AddressbookApp = /** @class */ (function (_super) {
|
|||||||
avatar: "account:" + row.data.account_id
|
avatar: "account:" + row.data.account_id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (_action.id == 'invite') {
|
||||||
|
app.status.inviteToCall(data, egw.getSessionItem('status', 'videoconference-session'));
|
||||||
|
}
|
||||||
|
else {
|
||||||
app.status.makeCall(data);
|
app.status.makeCall(data);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
return AddressbookApp;
|
return AddressbookApp;
|
||||||
}(egw_app_1.EgwApp));
|
}(egw_app_1.EgwApp));
|
||||||
|
@ -1343,6 +1343,11 @@ class AddressbookApp extends EgwApp
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private videoconference_isThereAnyCall(_action, _selected)
|
||||||
|
{
|
||||||
|
return this.videoconference_isUserOnline(_action, _selected) && egw.getSessionItem('status', 'videoconference-session');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call action
|
* Call action
|
||||||
* @param _action
|
* @param _action
|
||||||
@ -1360,8 +1365,15 @@ class AddressbookApp extends EgwApp
|
|||||||
avatar: "account:"+row.data.account_id
|
avatar: "account:"+row.data.account_id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (_action.id == 'invite')
|
||||||
|
{
|
||||||
|
app.status.inviteToCall(data, egw.getSessionItem('status', 'videoconference-session'));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
app.status.makeCall(data);
|
app.status.makeCall(data);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user