mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
chore: Update AdminUiHandler to clear input fields and set mode to ADMIN
This commit is contained in:
parent
3b9b0c4091
commit
f1111dc0d2
@ -66,11 +66,13 @@ export default class AdminUiHandler extends FormModalUiHandler {
|
|||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
console.error(response);
|
console.error(response);
|
||||||
}
|
}
|
||||||
this.scene.ui.revertMode();
|
this.inputs[0].setText("");
|
||||||
|
this.inputs[1].setText("");
|
||||||
|
this.scene.ui.setMode(Mode.ADMIN);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
this.scene.ui.revertMode();
|
this.scene.ui.setMode(Mode.ADMIN);
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user