feat: add option to disable desktop sharing

config.disableDesktopSharing - when set to false will disable desktop
sharing

interfaceConfig.DESKTOP_SHARING_BUTTON_DISABLED_TOOLTIP - when value is
assigned, will not hide the desktop sharing button completely, but show
as disabled with this value used as the tooltip text.
This commit is contained in:
paweldomas
2017-07-14 11:25:28 +02:00
committed by yanas
parent 10766e6958
commit b84e910086
7 changed files with 83 additions and 11 deletions

View File

@@ -43,6 +43,10 @@ export function getButtonAttributesByProps(props: Object = {})
result.style = { display: 'none' };
}
if (props.tooltipText) {
result.content = props.tooltipText;
}
return result;
}