Skip to content

TT-7101 Update button disable logic in PassageDetailItem to include currentSegmentMediaId check#209

Merged
gtryus merged 1 commit intodevelopfrom
feature/TT-7101-pbt-delete-availability
Feb 13, 2026
Merged

TT-7101 Update button disable logic in PassageDetailItem to include currentSegmentMediaId check#209
gtryus merged 1 commit intodevelopfrom
feature/TT-7101-pbt-delete-availability

Conversation

@gtryus
Copy link
Contributor

@gtryus gtryus commented Feb 12, 2026

  • Modified the delete recording button to be disabled when currentSegmentMediaId is not set, ensuring better control over button availability.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates delete-recording button enable/disable logic in PassageDetailItem to prevent delete actions when there’s no current segment media available.

Changes:

  • Disabled the recorder delete button when currentSegmentMediaId is not set.
  • Disabled the admin “delete recording” button in the playback row when currentSegmentMediaId is not set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gtryus gtryus force-pushed the feature/TT-7101-pbt-delete-availability branch from 91a0196 to 60af64a Compare February 12, 2026 22:22
…urrentSegmentMediaId check

- Modified the delete recording button to be disabled when currentSegmentMediaId is not set, ensuring better control over button availability.
- Updated the corresponding button in the handleDelete function to maintain consistent behavior.
@gtryus gtryus force-pushed the feature/TT-7101-pbt-delete-availability branch from 60af64a to 29281b4 Compare February 12, 2026 22:24
@gtryus gtryus requested a review from Copilot February 12, 2026 22:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

recorderControlsRef.current?.deleteRecording();
}}
disabled={isRecording() || playing}
disabled={isRecording() || playing || !currentSegmentMediaId}
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description states "Updated the corresponding button in the handleDelete function to maintain consistent behavior," but the diff only shows changes to one delete button (the one that calls deleteRecording). The admin delete button at line 1091-1096 that calls handleDelete(playItem) does not appear to have any changes in this PR. Please clarify if additional changes were intended or update the PR description to accurately reflect the changes made.

Copilot uses AI. Check for mistakes.
@gtryus gtryus merged commit 5a84cab into develop Feb 13, 2026
8 checks passed
@gtryus gtryus deleted the feature/TT-7101-pbt-delete-availability branch February 13, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant