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
Carlos Santos 2025-10-28 17:18:18 +01:00
parent 6c9a8a1bc2
commit 17ed624e40
2 changed files with 1 additions and 4 deletions

View File

@ -198,7 +198,7 @@
} }
<!-- Leave session button --> <!-- Leave session button -->
@if (showLeaveButtonDirect()) { @if (showLeaveButton) {
<button <button
mat-icon-button mat-icon-button
(click)="onLeaveClick()" (click)="onLeaveClick()"

View File

@ -96,9 +96,6 @@ export class ToolbarMediaButtonsComponent {
// More options button - always visible when not minimal // More options button - always visible when not minimal
readonly showMoreOptionsButtonDirect = computed(() => this.showMoreOptionsButton && !this.isMinimal); 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 // Check if there are active features that should show a badge on More Options
readonly hasActiveFeatures = computed( readonly hasActiveFeatures = computed(
() => () =>