[mirotalksfu] - fix typo + add tippy to participants btns

main
Miroslav Pejic 4 years ago
parent 1e2fdf829d
commit abc47af896

@ -584,11 +584,9 @@ button:hover {
padding: 8px; padding: 8px;
} }
/* /* #roomParticipants tr:nth-child(even) {
#roomParticipants tr:nth-child(even) { background-color: #0c0b0b;
background-color: #000000; } */
}
*/
/*-------------------------------------------------------------- /*--------------------------------------------------------------
# Send File # Send File

@ -1313,6 +1313,7 @@ async function getRoomParticipants(refresh = false) {
participantsCount = peers.size; participantsCount = peers.size;
roomParticipants.innerHTML = table; roomParticipants.innerHTML = table;
refreshParticipantsCount(participantsCount); refreshParticipantsCount(participantsCount);
setTableButtonsTippy();
if (!refresh) { if (!refresh) {
toggleParticipants(); toggleParticipants();
@ -1380,6 +1381,15 @@ async function getParticipantsTable(peers) {
return table; return table;
} }
function setTableButtonsTippy() {
if (!DetectRTC.isMobileDevice) {
setTippy('muteAllButton', 'Mute all participants', 'top');
setTippy('hideAllButton', 'Hide all participants', 'top');
setTippy('sendAllButton', 'Send file to all participants', 'top');
setTippy('ejectAllButton', 'Eject all participants', 'top');
}
}
function refreshParticipantsCount(count) { function refreshParticipantsCount(count) {
participantsTitle.innerHTML = `<i class="fas fa-users"></i> Participants ( ${count} )`; participantsTitle.innerHTML = `<i class="fas fa-users"></i> Participants ( ${count} )`;
} }

@ -2129,8 +2129,7 @@ class RoomClient {
allowEscapeKey: false, allowEscapeKey: false,
background: swalBackground, background: swalBackground,
imageUrl: image.locked, imageUrl: image.locked,
title: 'Oops, Room Locked', title: 'Oops, Room is Locked',
text: 'The room is locked, Enter the Room password',
input: 'text', input: 'text',
inputPlaceholder: 'Enter the Room password', inputPlaceholder: 'Enter the Room password',
confirmButtonText: `OK`, confirmButtonText: `OK`,

Loading…
Cancel
Save