From 7684503e5239500cd576ba5699f91439ed3c0b20 Mon Sep 17 00:00:00 2001 From: Rikudou_Sage Date: Fri, 1 Mar 2024 12:17:45 +0100 Subject: [PATCH] Feat: Show version on detail (#183) --- .../pages/instance-detail/instance-detail.component.html | 4 ++++ src/app/response/instance-detail.response.ts | 1 + src/app/response/normalized-instance-detail.response.ts | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/app/instances/pages/instance-detail/instance-detail.component.html b/src/app/instances/pages/instance-detail/instance-detail.component.html index 286e3db..7c2bd1c 100644 --- a/src/app/instances/pages/instance-detail/instance-detail.component.html +++ b/src/app/instances/pages/instance-detail/instance-detail.component.html @@ -37,6 +37,10 @@

Instance details

Software {{detail.software}} + + Version + {{detail.version}} + Is claimed? diff --git a/src/app/response/instance-detail.response.ts b/src/app/response/instance-detail.response.ts index 1cd71dd..73aa065 100644 --- a/src/app/response/instance-detail.response.ts +++ b/src/app/response/instance-detail.response.ts @@ -7,6 +7,7 @@ export interface InstanceDetailResponse { id: int; domain: string; software: string; + version: string | null; claimed: int; open_registrations: boolean; email_verify: boolean | null; diff --git a/src/app/response/normalized-instance-detail.response.ts b/src/app/response/normalized-instance-detail.response.ts index 7161b20..fba46af 100644 --- a/src/app/response/normalized-instance-detail.response.ts +++ b/src/app/response/normalized-instance-detail.response.ts @@ -7,6 +7,7 @@ export class NormalizedInstanceDetailResponse { public id: int, public domain: string, public software: string, + public version: string | null, public claimed: int, public openRegistrations: boolean, public emailVerify: boolean | null, @@ -50,6 +51,7 @@ export class NormalizedInstanceDetailResponse { detail.id, detail.domain, detail.software, + detail.version, detail.claimed, detail.open_registrations, detail.email_verify,