mirror of https://github.com/OpenVidu/openvidu.git
ov-components: Removes redundant computed property
Simplifies the template by directly using the `showLeaveButton` property. Removes the now-unnecessary computed property that duplicated the value.pull/856/head
parent
6c9a8a1bc2
commit
17ed624e40
|
|
@ -198,7 +198,7 @@
|
|||
}
|
||||
|
||||
<!-- Leave session button -->
|
||||
@if (showLeaveButtonDirect()) {
|
||||
@if (showLeaveButton) {
|
||||
<button
|
||||
mat-icon-button
|
||||
(click)="onLeaveClick()"
|
||||
|
|
|
|||
|
|
@ -96,9 +96,6 @@ export class ToolbarMediaButtonsComponent {
|
|||
// More options button - always visible when not minimal
|
||||
readonly showMoreOptionsButtonDirect = computed(() => this.showMoreOptionsButton && !this.isMinimal);
|
||||
|
||||
// Leave button
|
||||
readonly showLeaveButtonDirect = computed(() => this.showLeaveButton);
|
||||
|
||||
// Check if there are active features that should show a badge on More Options
|
||||
readonly hasActiveFeatures = computed(
|
||||
() =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue