chore: Refactor AdminUiHandler to clear input fields and revert mode
This commit is contained in:
parent
7eb6ba4dfd
commit
f7169868f3
|
@ -69,12 +69,10 @@ export default class AdminUiHandler extends FormModalUiHandler {
|
|||
this.inputs[0].setText("");
|
||||
this.inputs[1].setText("");
|
||||
this.scene.ui.revertMode();
|
||||
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