feat: auto-fill deck name with Auto - {CommanderName} on select
This commit is contained in:
1 parent
3ba44f68d9
commit
64a65ca2f6
1 file changed
+6
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user