15530: When loading sessions, clear 'active' flag and revalidate.
[arvados.git] / src / models / user.ts
index eed135a21cf816133dc14deb4a656cce21953553..2497864507787cef09d6d3914780b79136090d77 100644 (file)
@@ -4,7 +4,7 @@
 
 import { Resource, ResourceKind } from '~/models/resource';
 
-export type userPrefs = {
+export type UserPrefs = {
     profile?: {
         organization?: string,
         organization_email?: string,
@@ -20,8 +20,10 @@ export interface User {
     lastName: string;
     uuid: string;
     ownerUuid: string;
-    identityUrl: string;
-    prefs: userPrefs;
+    username: string;
+    prefs: UserPrefs;
+    isAdmin: boolean;
+    isActive: boolean;
 }
 
 export const getUserFullname = (user?: User) => {
@@ -34,10 +36,9 @@ export interface UserResource extends Resource {
     username: string;
     firstName: string;
     lastName: string;
-    identityUrl: string;
     isAdmin: boolean;
-    prefs: string;
+    prefs: UserPrefs;
     defaultOwnerUuid: string;
     isActive: boolean;
     writableBy: string[];
-}
\ No newline at end of file
+}