bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/waiting-users/waiting-users-graphql/service.ts

22 lines
549 B
TypeScript
Raw Normal View History

export const privateMessageVisible = (id: string) => {
const privateInputSpace = document.getElementById(id);
if (privateInputSpace) {
if (privateInputSpace.style.display === 'block') {
privateInputSpace.style.display = 'none';
} else {
privateInputSpace.style.display = 'block';
}
}
};
export const getNameInitials = (name: string) => {
const nameInitials = name.slice(0, 2);
return nameInitials.replace(/^\w/, (c: string) => c.toUpperCase());
};
export default {
privateMessageVisible,
getNameInitials,
};