Fixed error not showing up in certain conditions

This commit is contained in:
Opaque02 2024-10-21 08:16:39 +10:00
parent 7102335153
commit fa00458090

View File

@ -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: []});