Merge branch 'master' into 16941-inactive-remotes
[arvados-workbench2.git] / src / services / auth-service / auth-service.ts
index ce3564e001614b664998a9db73a57c79eabc79af..7510171106eb2761a4b0a118661ee55dc8c812b2 100644 (file)
@@ -96,7 +96,7 @@ export class AuthService {
         window.location.assign(`${this.baseUrl || ""}/logout?return_to=${currentUrl}`);
     }
 
-    public getUserDetails = (): Promise<User> => {
+    public getUserDetails = (showErrors?: boolean): Promise<User> => {
         const reqId = uuid();
         this.actions.progressFn(reqId, true);
         return this.apiClient
@@ -118,7 +118,7 @@ export class AuthService {
             })
             .catch(e => {
                 this.actions.progressFn(reqId, false);
-                this.actions.errorFn(reqId, e);
+                this.actions.errorFn(reqId, e, showErrors);
                 throw e;
             });
     }