Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
AStA
AStAPrint Admin Business Logic
Commits
58b6ec90
Commit
58b6ec90
authored
Mar 31, 2022
by
Leon Tappe
🔥
Browse files
update username in table when changing
parent
73fcf475
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/src/users/users_bloc.dart
View file @
58b6ec90
...
...
@@ -339,6 +339,8 @@ class UsersBloc extends Bloc<UsersEvent, UsersState> {
).
then
((
Response
response
)
{
_log
.
finer
(
formatResponse
(
response
));
if
(
response
.
statusCode
==
205
)
{
_users
[
_users
.
indexWhere
((
User
user
)
=>
user
.
id
==
userId
)]
=
_users
[
_users
.
indexWhere
((
User
user
)
=>
user
.
id
==
userId
)].
copyWith
(
name:
name
);
return
;
}
else
{
throw
NetworkException
(
'status code other than 205 received'
,
response
.
statusCode
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment