mirror of
https://github.com/inventree/inventree-app.git
synced 2026-06-10 08:27:15 +00:00
User info (#826)
* Enhanced user information in "about" view * Add user info to nav drawer * Update release notes
This commit is contained in:
@@ -277,6 +277,9 @@ class InvenTreeAPI {
|
||||
Map<String, dynamic> userInfo = {};
|
||||
|
||||
String get username => (userInfo["username"] ?? "") as String;
|
||||
String get userEmail => (userInfo["email"] ?? "") as String;
|
||||
String get userFirstName => (userInfo["first_name"] ?? "") as String;
|
||||
String get userLastName => (userInfo["last_name"] ?? "") as String;
|
||||
|
||||
int get userId => (userInfo["pk"] ?? -1) as int;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user