2
0
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:
Oliver
2026-05-30 14:19:32 +10:00
committed by GitHub
parent c95d5dfa7f
commit ea075f35e8
5 changed files with 106 additions and 51 deletions
+3
View File
@@ -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;