Added - queue configurator default deck-building duration based on game type
This commit is contained in:
@@ -314,8 +314,12 @@ var GempLotrHallUI = Class.extend({
|
|||||||
const $durationRow = $("<div>").addClass("formRow");
|
const $durationRow = $("<div>").addClass("formRow");
|
||||||
const $durationLabel = $("<label>").attr("for", "deckDuration").text("Deck-building duration (minutes, minimum 5):");
|
const $durationLabel = $("<label>").attr("for", "deckDuration").text("Deck-building duration (minutes, minimum 5):");
|
||||||
const $durationInput = $("<input>")
|
const $durationInput = $("<input>")
|
||||||
.attr({ type: "number", id: "deckDuration", name: "deckDuration", min: 5 })
|
.attr({ type: "number", id: "deckDuration", name: "deckDuration", min: 5 });
|
||||||
.val(15);
|
if (gameType === "table_draft") {
|
||||||
|
$durationInput.val("15");
|
||||||
|
} else {
|
||||||
|
$durationInput.val("30");
|
||||||
|
}
|
||||||
$durationRow.append($durationLabel, $durationInput);
|
$durationRow.append($durationLabel, $durationInput);
|
||||||
|
|
||||||
// Competitive
|
// Competitive
|
||||||
|
|||||||
Reference in New Issue
Block a user