From deeb44931721e4628c6b25c804b2c5994daf8035 Mon Sep 17 00:00:00 2001 From: "leanne.laceybyrne@eliatra.com" Date: Wed, 20 Sep 2023 08:36:58 +0100 Subject: [PATCH] changing return to dashboards with functioning logout button on error page Signed-off-by: leanne.laceybyrne@eliatra.com --- public/apps/customerror/custom-error.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/apps/customerror/custom-error.tsx b/public/apps/customerror/custom-error.tsx index eb4dd9f2e..fab81c218 100644 --- a/public/apps/customerror/custom-error.tsx +++ b/public/apps/customerror/custom-error.tsx @@ -21,6 +21,7 @@ import { Router, Route } from 'react-router-dom'; import { ERROR_MISSING_ROLE_PATH } from '../../../common'; import { ClientConfigType } from '../../types'; import './_index.scss'; +import { logout } from '../account/utils'; interface CustomErrorDeps { title: string; @@ -45,8 +46,8 @@ export function CustomErrorPage(props: CustomErrorDeps) { {props.subtitle} - - Back to OpenSearch Dashboards Home + logout(props.http, '')} fullWidth> + Logout );