mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
Fixed error not showing up in certain conditions
This commit is contained in:
parent
7102335153
commit
fa00458090
@ -198,6 +198,7 @@ export default class AdminUiHandler extends FormModalUiHandler {
|
|||||||
}
|
}
|
||||||
this.adminLinkUnlink(this.convertInputsToAdmin(), service, mode).then(response => { // attempts to link/unlink depending on the service
|
this.adminLinkUnlink(this.convertInputsToAdmin(), service, mode).then(response => { // attempts to link/unlink depending on the service
|
||||||
if (response.error) {
|
if (response.error) {
|
||||||
|
this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});
|
||||||
return this.showMessage(response.errorType, adminResult, true); // fail
|
return this.showMessage(response.errorType, adminResult, true); // fail
|
||||||
} else { // success, reload panel with new results
|
} else { // success, reload panel with new results
|
||||||
this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});
|
this.scene.ui.setMode(Mode.LOADING, { buttonActions: []});
|
||||||
|
Loading…
Reference in New Issue
Block a user