mirror of https://github.com/OpenVidu/openvidu.git
ov-components: simplify conditions for opening activity panels
parent
92eaf47e4e
commit
23d97cb78e
|
|
@ -684,7 +684,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
openRecordingActivityPanel() {
|
openRecordingActivityPanel() {
|
||||||
if (this.showActivitiesPanelButton && !this.isActivitiesOpened) {
|
if (!this.isActivitiesOpened) {
|
||||||
this.panelService.togglePanel(PanelType.ACTIVITIES, 'recording');
|
this.panelService.togglePanel(PanelType.ACTIVITIES, 'recording');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -693,7 +693,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
openBroadcastingActivityPanel() {
|
openBroadcastingActivityPanel() {
|
||||||
if (this.showActivitiesPanelButton && !this.isActivitiesOpened) {
|
if (!this.isActivitiesOpened) {
|
||||||
this.panelService.togglePanel(PanelType.ACTIVITIES, 'broadcasting');
|
this.panelService.togglePanel(PanelType.ACTIVITIES, 'broadcasting');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue