mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
disable button if no voice selected
This commit is contained in:
1 parent
6fef9167ce
commit
db4867edd6
1 file changed
+2
-2
@@ -484,7 +484,7 @@ export const GenerateTts = ({
|
||||
/>
|
||||
</div>
|
||||
<span className="text-truncate" style={{ maxWidth: "300px" }}>
|
||||
{voiceTitle || "No voice selected"}
|
||||
{voiceTitle || "Click here to select a voice..."}
|
||||
</span>
|
||||
</div>
|
||||
<FontAwesomeIcon icon={faChevronRight} />
|
||||
@@ -525,7 +525,7 @@ export const GenerateTts = ({
|
||||
variant={"action"}
|
||||
icon={faWaveformLines}
|
||||
onClick={handleEnqueueTts}
|
||||
disabled={textBuffer.length === 0}
|
||||
disabled={textBuffer.length === 0 || voiceToken === null}
|
||||
isLoading={isAudioLoading}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user