projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15020-collection-with-the-same-content-adress'
[arvados-workbench2.git]
/
src
/
models
/
user.ts
diff --git
a/src/models/user.ts
b/src/models/user.ts
index 9f9c534763ca86ee40190c2361c89b4e81da2f95..2497864507787cef09d6d3914780b79136090d77 100644
(file)
--- a/
src/models/user.ts
+++ b/
src/models/user.ts
@@
-4,13
+4,26
@@
import { Resource, ResourceKind } from '~/models/resource';
import { Resource, ResourceKind } from '~/models/resource';
+export type UserPrefs = {
+ profile?: {
+ organization?: string,
+ organization_email?: string,
+ lab?: string,
+ website_url?: string,
+ role?: string
+ }
+};
+
export interface User {
email: string;
firstName: string;
lastName: string;
uuid: string;
ownerUuid: string;
export interface User {
email: string;
firstName: string;
lastName: string;
uuid: string;
ownerUuid: string;
+ username: string;
+ prefs: UserPrefs;
isAdmin: boolean;
isAdmin: boolean;
+ isActive: boolean;
}
export const getUserFullname = (user?: User) => {
}
export const getUserFullname = (user?: User) => {
@@
-23,10
+36,9
@@
export interface UserResource extends Resource {
username: string;
firstName: string;
lastName: string;
username: string;
firstName: string;
lastName: string;
- identityUrl: string;
isAdmin: boolean;
isAdmin: boolean;
- prefs:
string
;
+ prefs:
UserPrefs
;
defaultOwnerUuid: string;
isActive: boolean;
writableBy: string[];
defaultOwnerUuid: string;
isActive: boolean;
writableBy: string[];
-}
\ No newline at end of file
+}