fix tournament name being not updatable
also make the saved tourney settings popup disappear faster
This commit is contained in:
parent
ece587b576
commit
ca7560d10a
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
export let iconColor: ColorPreset = 'primary';
|
export let iconColor: ColorPreset = 'primary';
|
||||||
export let buttons: ButtonConfig[] = [];
|
export let buttons: ButtonConfig[] = [];
|
||||||
export let customImage: string = '';
|
export let customImage: string = '';
|
||||||
export let autoClose: number = 0; // 0 means no auto close
|
export let autoClose: number = 1500; // 0 means no auto close
|
||||||
|
|
||||||
// Event dispatcher
|
// Event dispatcher
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@
|
||||||
async function saveSettings() {
|
async function saveSettings() {
|
||||||
if(!tournament) return;
|
if(!tournament) return;
|
||||||
|
|
||||||
if(modifiedObject.name) {
|
if(tournamentName !== tournament.settings!.tournamentName) {
|
||||||
const setTournamentName = await client.setTournamentName(tournamentGuid, tournamentName);
|
const setTournamentName = await client.setTournamentName(tournamentGuid, tournamentName);
|
||||||
console.log(setTournamentName)
|
console.log(setTournamentName)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue