Enable Copy link after generation and style it.

Refresh generated state after successful playback starts so Copy link becomes clickable, and boost its visual prominence without competing with Play.
This commit is contained in:
b1rdmania
2025-12-26 21:20:21 +00:00
parent 63618ec4fa
commit 7cbf582fa1
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -512,7 +512,8 @@ class MotifApp {
this.updateStatus('');
this.hasGenerated = true;
// keep generated state
// Refresh generated state now that generation succeeded (enables Copy link, etc.)
this.setState('generated');
} catch (error) {
this.updateStatus(`Motif error: ${error instanceof Error ? error.message : 'Unknown error'}`);
this.motifBtn.disabled = false;