feat: auto-fill deck name with Auto - {CommanderName} on select

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-24 23:19:17 -04:00
1 parent 3ba44f68d9
commit 64a65ca2f6
1 file changed
+6
+6
View File
@@ -345,6 +345,12 @@ const DeckGenerator = (() => {
}
$('dg-preview-btn').disabled = false;
// Auto-fill deck name if empty
const deckNameInput = $('dg-deck-name');
if (deckNameInput && !deckNameInput.value.trim()) {
deckNameInput.value = 'Auto - ' + cmdr.name;
}
}
function clearCommander() {