implementing organisation/customer-specific graphs

This commit is contained in:
Felix 2019-08-19 15:02:02 +01:00
parent 05a57e8203
commit 6cd65b8ac6
6 changed files with 250 additions and 154 deletions

View file

@ -16,6 +16,9 @@ saveCurrentLogin(Map responseJson, loginEmail) async {
var email = (loginEmail != null)
? loginEmail
: "";
var userType = (responseJson != null && responseJson.isNotEmpty)
? LoginModel.fromJson(responseJson).userType
: "";
await preferences.setString(
'LastUser', (user != null && user.length > 0) ? user : "");
@ -23,4 +26,6 @@ saveCurrentLogin(Map responseJson, loginEmail) async {
'LastToken', (token != null && token.length > 0) ? token : "");
await preferences.setString(
'LastEmail', (email != null && email.length > 0) ? email : "");
await preferences.setString(
'LastUserType', (userType != null && userType.length > 0) ? userType : "");
}