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) {
|
||||
console.error(response);
|
||||
}
|
||||
this.scene.ui.revertMode();
|
||||
this.inputs[0].setText("");
|
||||
this.inputs[1].setText("");
|
||||
this.scene.ui.setMode(Mode.ADMIN);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
this.scene.ui.revertMode();
|
||||
this.scene.ui.setMode(Mode.ADMIN);
|
||||
});
|
||||
return false;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue