projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Format creadcrumbs test code
[arvados.git]
/
src
/
models
/
user.ts
diff --git
a/src/models/user.ts
b/src/models/user.ts
index 514402d87e32f4245efc050d7ee142b77b8c2717..4cc29ba779cc6dfd677c965d0c485e7bc18fb0fe 100644
(file)
--- a/
src/models/user.ts
+++ b/
src/models/user.ts
@@
-4,6
+4,12
@@
export interface User {
email: string;
export interface User {
email: string;
- apiToken: string;
- apiHost: string;
+ firstName: string;
+ lastName: string;
+ uuid: string;
+ ownerUuid: string;
}
}
+
+export const getUserFullname = (user?: User) => {
+ return user ? `${user.firstName} ${user.lastName}` : "";
+};
\ No newline at end of file