From 58cf7e816b3ffb5c008a3c4d8eeb72bba33de82b Mon Sep 17 00:00:00 2001 From: Jack Bailey <81699395+JackBailey@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:39:22 +0000 Subject: [PATCH] Add total price indicator to labels and locations --- frontend/lib/api/types/data-contracts.ts | 2 + frontend/pages/label/[id].vue | 15 +++++- frontend/pages/location/[id].vue | 66 ++++++++++++++++++++++-- 3 files changed, 78 insertions(+), 5 deletions(-) diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts index e5457bb..2990549 100644 --- a/frontend/lib/api/types/data-contracts.ts +++ b/frontend/lib/api/types/data-contracts.ts @@ -193,6 +193,7 @@ export interface LabelOut { id: string; name: string; updatedAt: Date | string; + totalPrice: number | undefined; } export interface LabelSummary { @@ -217,6 +218,7 @@ export interface LocationOut { name: string; parent: LocationSummary; updatedAt: Date | string; + totalPrice: number | undefined; } export interface LocationOutCount { diff --git a/frontend/pages/label/[id].vue b/frontend/pages/label/[id].vue index f190782..5c7e5d9 100644 --- a/frontend/pages/label/[id].vue +++ b/frontend/pages/label/[id].vue @@ -1,4 +1,6 @@ @@ -111,8 +115,17 @@
-

+

{{ label ? label.name : "" }} + +
+
+ +
+

diff --git a/frontend/pages/location/[id].vue b/frontend/pages/location/[id].vue index 05c6e5f..7728f5b 100644 --- a/frontend/pages/location/[id].vue +++ b/frontend/pages/location/[id].vue @@ -1,6 +1,7 @@ @@ -135,8 +184,17 @@
  • {{ location.name }}
  • -

    +

    {{ location ? location.name : "" }} + +
    +
    + +
    +