frontend: add delete action for failed recordings in recording lists component
This commit is contained in:
parent
a499fe4cd4
commit
169b8c203a
@ -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>
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user