Add call info under button

This commit is contained in:
mdivecky 2020-06-26 09:48:34 +02:00
parent 72c498692a
commit 77bea45245

View file

@ -36,11 +36,14 @@ function launchBBB($elem) {
function attachButton($elem) {
const buttonLabel = $elem.data("label") || I18n.t("bbb.launch");
const data = $elem.data();
$elem.html(
`<button class='launch-bbb btn'>${iconHTML(
"video"
)} ${buttonLabel}</button>`
)} ${buttonLabel}</button><br/>
Call URL: <a href="https://call.nolog.cz/b/${data.meetingID}">https://call.nolog.cz/b/${data.meetingID}</a><br/>
Call password: ${data.attendeePW}`
);
$elem.find("button").on("click", () => launchBBB($elem));
}