Added - confirmation when queue gets created

This commit is contained in:
jakub.salavec
2025-06-16 14:17:43 +02:00
parent eb71794f38
commit 3a48de002a

View File

@@ -443,6 +443,8 @@ var GempLotrHallUI = Class.extend({
}, },
createTournament: function() { createTournament: function() {
var that = this;
const type = $("#gameTypeSelect").val(); const type = $("#gameTypeSelect").val();
// Depending on the type, pick the correct format code from the formatSelect dropdown // Depending on the type, pick the correct format code from the formatSelect dropdown
const formatCode = $("#formatSelect").val(); const formatCode = $("#formatSelect").val();
@@ -487,9 +489,8 @@ var GempLotrHallUI = Class.extend({
startableEarly, startableEarly,
readyCheck, readyCheck,
function(json) { function(json) {
// Success callback — handle your response here // Success callback
console.log("Tournament created successfully:", json); that.showDialog("Tournament Update", "Tournament queue created successfully");
// You can add preview or other logic here as needed
}, },
this.hallErrorMap() this.hallErrorMap()
); );