fix: generate prompts button #23
No reviewers
Labels
No labels
autorelease: pending
autorelease: tagged
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nick/announcemint!23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ns/fixGeneratingPromptsButton"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fix Generate Prompts button staying disabled after creating valid AWS session
Problem
voiceIdbeing set; with no initial session, voices were never loaded and the voice dropdown stayed empty. When the session later became valid,loadVoices()ran and populated the dropdown but did not set a default voice whenvoiceIdwas empty, so!voiceIdkept the button disabled.Solution
loadVoices(), when the voices list is loaded and the currentvoiceIdis empty or not in the new list, setvoiceIdto the first available voice. After a valid session is created and voices load, a voice is selected so the button can enable when the other conditions (output dir, prompts) are met.sessionOk !== trueto the Generate Prompts button’s:disabledexpression so the button is explicitly disabled without a valid session and automatically enables when the session becomes valid.Changes
src/App.vue: InloadVoices(), replace the condition that only updatedvoiceIdwhen it was truthy but not in the list with logic that setsvoiceIdtovoices[0].idwhenever the current value is empty or not in the loaded list. In the main view, addsessionOk !== trueto the Generate Prompts button’s disabled condition.