frontend: add delete action for failed recordings in recording lists component

This commit is contained in:
Carlos Santos 2025-07-16 11:07:04 +02:00
parent a499fe4cd4
commit 169b8c203a
2 changed files with 37 additions and 21 deletions

View File

@ -195,6 +195,17 @@
</button> </button>
} }
@if (isRecordingFailed(recording)) {
<button
class="delete-action"
mat-icon-button
matTooltip="Delete Recording"
(click)="deleteRecording(recording)"
[disabled]="loading"
>
<mat-icon>delete</mat-icon>
</button>
} @else {
<!-- More Actions Menu --> <!-- More Actions Menu -->
<button <button
mat-icon-button mat-icon-button
@ -219,6 +230,7 @@
</button> </button>
} }
</mat-menu> </mat-menu>
}
</div> </div>
</td> </td>
</ng-container> </ng-container>

View File

@ -310,6 +310,10 @@ export class RecordingListsComponent implements OnInit, OnChanges {
return this.canDeleteRecordings && this.isStatusInGroup(recording.status, this.STATUS_GROUPS.SELECTABLE); return this.canDeleteRecordings && this.isStatusInGroup(recording.status, this.STATUS_GROUPS.SELECTABLE);
} }
isRecordingFailed(recording: MeetRecordingInfo): boolean {
return this.isStatusInGroup(recording.status, this.STATUS_GROUPS.ERROR);
}
// ===== UI HELPER METHODS ===== // ===== UI HELPER METHODS =====
getStatusIcon(status: MeetRecordingStatus): string { getStatusIcon(status: MeetRecordingStatus): string {