Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Jan 20, 2026

Fixes the selection range on the embed actions filename input field and renames the confirm action to "Save" when using this. It must not compute on fileName because this would re-run every time the user inputs something. This only needs to happen initially.

fixes #1630

@JammingBen JammingBen self-assigned this Jan 20, 2026
Copilot AI review requested due to automatic review settings January 20, 2026 13:42
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

This PR fixes two issues in the embed actions component: corrects the filename input field selection range and updates the confirm button label. The changes ensure that when a user saves a file through the embed action, the selection properly excludes the file extension (when extensions are shown) and the button text accurately reflects the "Save" action instead of "Choose".

Changes:

  • Updated the confirm button label to conditionally display "Save" when choosing a filename
  • Refactored the selection range calculation from a computed property to be set in onMounted lifecycle hook
  • Added logic to properly calculate the selection range excluding file extensions when they are visible

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

@JammingBen JammingBen force-pushed the fix/embed-actions-filename-select branch from e309078 to 56f25aa Compare January 20, 2026 13:48
Fixes the selection range on the embed actions filename input field and renames the confirm action to "Save" when using this.
@JammingBen JammingBen force-pushed the fix/embed-actions-filename-select branch from 56f25aa to 7b599b8 Compare January 20, 2026 13:55
@JammingBen JammingBen requested a review from kulmann January 20, 2026 14:19
@kulmann kulmann merged commit 4b8be8d into main Jan 21, 2026
28 checks passed
@kulmann kulmann deleted the fix/embed-actions-filename-select branch January 21, 2026 12:35
@openclouders openclouders mentioned this pull request Jan 21, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Save As in Texteditor is hard to use

3 participants