radiology ai lab analysis & lab ai analysis api end points updates.

pull/221/head
aamir-csol 18 hours ago
parent 5900657b52
commit d1e0ec31e6

@ -249,4 +249,18 @@ class AppState {
_userSwitchPayloads.clear();
_childSwitchCounter = 0;
}
void clearChildUsersKeepSuperUser() {
// Keep the super user payload
final superUserPayload = _userSwitchPayloads['superUser'];
// Clear all payloads
_userSwitchPayloads.clear();
_childSwitchCounter = 0;
// Restore super user if it existed
if (superUserPayload != null) {
_userSwitchPayloads['superUser'] = superUserPayload;
}
}
}

@ -314,7 +314,7 @@ class AuthenticationRepoImp implements AuthenticationRepo {
requestBody['PatientIdentificationID'] = "";
requestBody.removeWhere((key, value) => ['NationalID', 'isDentalAllowedBackend', 'ForRegisteration'].contains(key));
appState.setIsChildLoggedIn = false;
appState.clearUserSwitchPayloads();
appState.clearChildUsersKeepSuperUser();
}
} else {
appState.setIsChildLoggedIn = true;

Loading…
Cancel
Save