diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 277b15e..4d5bc61 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,8 @@ - + + diff --git a/src/components/DashboardPage.tsx b/src/components/DashboardPage.tsx index 04b5cb2..f531118 100644 --- a/src/components/DashboardPage.tsx +++ b/src/components/DashboardPage.tsx @@ -45,14 +45,23 @@ export default function DashboardPage() {

{e.serviceName}

Application Id

{e.serviceId}

- { - let rawSession: string | null = localStorage.getItem("session_key"); + {e.hostnames.map((host)=>{ + return ( +
+ {host.hostname} + {host.isSslEnabled ? { + let rawSession: string | null = localStorage.getItem("session_key"); + + if (rawSession != null) { + let session: SessionKey = JSON.parse(rawSession); + await enableSSL(account!.id!, e.serviceId, session); + } + }}>Enable SSL :

SSL is enabled!

+ } +
+ ) + })} - if(rawSession != null) { - let session: SessionKey = JSON.parse(rawSession); - await enableSSL(account!.id!, e.serviceId, session); - } - }}>Enable SSL ); })} diff --git a/src/nws-api/types.ts b/src/nws-api/types.ts index d5012ef..7d9f33d 100644 --- a/src/nws-api/types.ts +++ b/src/nws-api/types.ts @@ -48,12 +48,19 @@ export type Account = { status?: string }; +export type Host = { + serviceId: string, + isSslEnabled: boolean, + hostname: string +}; + export type Service = { serviceId: string, serviceName: string, namespace: string, containerUrl: string, - ownerId: string + ownerId: string, + hostnames: Host[] } export type ApiError = {