Remove password for React change

This commit is contained in:
Hillel Coren 2022-06-20 14:22:00 +03:00
parent 266db2eecb
commit 0807af8908
1 changed files with 14 additions and 17 deletions

View File

@ -245,23 +245,20 @@ class _DashboardScreenState extends State<DashboardScreen>
final data = serializers.serializeWith( final data = serializers.serializeWith(
AccountEntity.serializer, account); AccountEntity.serializer, account);
passwordCallback( store.dispatch(StartSaving());
context: context, WebClient()
callback: (password, idToken) async { .put(
store.dispatch(StartSaving()); url,
WebClient() credentials.token,
.put(url, credentials.token, data: json.encode(data),
data: json.encode(data), )
password: password, .then((dynamic _) {
idToken: idToken) store.dispatch(StopSaving());
.then((dynamic _) { WebUtils.reloadBrowser();
store.dispatch(StopSaving()); }).catchError((Object error) {
WebUtils.reloadBrowser(); store.dispatch(StopSaving());
}).catchError((Object error) { showErrorDialog(context: context, message: error);
store.dispatch(StopSaving()); });
showErrorDialog(context: context, message: error);
});
});
}, },
icon: Icon(MdiIcons.react), icon: Icon(MdiIcons.react),
), ),