Fix border view

This commit is contained in:
gparant 2020-05-14 20:54:34 +02:00
parent 787e1c463c
commit 182882fded

View File

@ -180,12 +180,16 @@ export class MediaManager {
*
* @param userId
*/
disabledVideoByUserId(userId: string){
disabledVideoByUserId(userId: string) {
let element = document.getElementById(`${userId}`);
if(!element){
if (element) {
element.style.opacity = "0";
}
element = document.getElementById(`div-${userId}`);
if (!element) {
return;
}
element.style.opacity = "0";
element.style.borderStyle = "solid";
}
/**
@ -194,10 +198,14 @@ export class MediaManager {
*/
enabledVideoByUserId(userId: string){
let element = document.getElementById(`${userId}`);
if(element){
element.style.opacity = "1";
}
element = document.getElementById(`div-${userId}`);
if(!element){
return;
}
element.style.opacity = "1";
element.style.borderStyle = "none";
}
/**