diff --git a/http-gateway/web/packages/shared-ui b/http-gateway/web/packages/shared-ui
index 800b3d071..a06f43c37 160000
--- a/http-gateway/web/packages/shared-ui
+++ b/http-gateway/web/packages/shared-ui
@@ -1 +1 @@
-Subproject commit 800b3d071b7c810ce67b7096e276248a2dbbc7fb
+Subproject commit a06f43c376da171d93af3cc3775ec7ee788584d5
diff --git a/http-gateway/web/src/containers/App/AppInner/AppInner.tsx b/http-gateway/web/src/containers/App/AppInner/AppInner.tsx
index f629d70fa..43f114853 100644
--- a/http-gateway/web/src/containers/App/AppInner/AppInner.tsx
+++ b/http-gateway/web/src/containers/App/AppInner/AppInner.tsx
@@ -22,7 +22,7 @@ import AppLayout from '@/containers/App/AppLayout/AppLayout'
const AppInner = (props: Props) => {
const { wellKnownConfig, openTelemetry, collapsed, setCollapsed } = props
- const { userData, userManager, signOutRedirect } = useAuth()
+ const { userData, userManager, signOutRedirect, isLoading } = useAuth()
const [footerExpanded, setFooterExpanded] = useLocalStorage('footerPanelExpanded', false)
@@ -42,18 +42,18 @@ const AppInner = (props: Props) => {
[footerExpanded, collapsed, setCollapsed, setFooterExpanded, wellKnownConfig, openTelemetry]
)
- if (userData) {
+ if (!userData || isLoading) {
+ return
+ } else {
security.setAccessToken(userData.access_token)
+ // security.setUserData(userData)
// for remote clients
- clientAppSettings.setUserData(userData)
clientAppSettings.setSignOutRedirect(signOutRedirect)
if (userManager) {
security.setUserManager(userManager)
}
- } else {
- return
}
return (
diff --git a/http-gateway/web/src/containers/RemoteClients/List/AddRemoteClientModal/AddRemoteClientModal.tsx b/http-gateway/web/src/containers/RemoteClients/List/AddRemoteClientModal/AddRemoteClientModal.tsx
index 53f21b2b8..25ae2873e 100644
--- a/http-gateway/web/src/containers/RemoteClients/List/AddRemoteClientModal/AddRemoteClientModal.tsx
+++ b/http-gateway/web/src/containers/RemoteClients/List/AddRemoteClientModal/AddRemoteClientModal.tsx
@@ -158,7 +158,10 @@ const AddRemoteClientModal: FC = (props) => {
})
.catch((e) => {
setVersionLoading(false)
- Notification.error({ title: _(t.error), message: _(t.clientError) }, { notificationId: notificationId.HUB_ADD_REMOTE_CLIENT_MODAL_ON_SUBMIT })
+ Notification.error(
+ { title: _(t.error), message: _(t.clientError, { remoteClientUrl: url }) },
+ { notificationId: notificationId.HUB_ADD_REMOTE_CLIENT_MODAL_ON_SUBMIT, onClick: () => window.open(url, '_blank') }
+ )
})
}
@@ -235,7 +238,7 @@ const AddRemoteClientModal: FC = (props) => {