mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-07 07:41:47 +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:
1 parent
c95d5dfa7f
commit
ea075f35e8
5 files changed
+106
-51
No files matched your search
@@ -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