fixes filter and table view and add user dialog

This commit is contained in:
mohammad
2025-01-12 15:32:03 +03:00
parent f8efc07fdb
commit 15023e5882
10 changed files with 496 additions and 488 deletions

View File

@ -71,8 +71,8 @@ class UserPermissionApi {
"firstName": firstName,
"lastName": lastName,
"email": email,
"jobTitle": jobTitle != '' ? jobTitle : " ",
"phoneNumber": phoneNumber != '' ? phoneNumber : " ",
"jobTitle": jobTitle != '' ? jobTitle : null,
"phoneNumber": phoneNumber != '' ? phoneNumber : null,
"roleUuid": roleUuid,
"projectUuid": "0e62577c-06fa-41b9-8a92-99a21fbaf51c",
"spaceUuids": spaceUuids,
@ -119,13 +119,8 @@ class UserPermissionApi {
);
return response ?? 'Unknown error occurred';
} on DioException catch (e) {
if (e.response != null) {
final errorMessage = e.response?.data['error'];
return errorMessage is String
? errorMessage
: 'Error occurred while checking email';
}
return 'Error occurred while checking email';
final errorMessage = e.response?.data['error'];
return errorMessage;
} catch (e) {
return e.toString();
}