From edd936c56d7d7fdb603a659de3a7372f848cee22 Mon Sep 17 00:00:00 2001 From: codingpeanut157 Date: Fri, 21 Nov 2025 16:36:35 +0100 Subject: [PATCH] fix the `enable Minting` button it was mistakenly greied out all the times, now we have a new field in InfoReply that informs us on the status of the minting. --- src/generated/client/types.gen.ts | 9 +++++++++ src/pages/quotes/QuotePage.tsx | 18 +++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/generated/client/types.gen.ts b/src/generated/client/types.gen.ts index ab59c0c..4782774 100644 --- a/src/generated/client/types.gen.ts +++ b/src/generated/client/types.gen.ts @@ -126,6 +126,14 @@ export type AnonPublicData = { /** * --------------------------- Quote info request */ + +export type MintingStatus = { + status: 'Disabled' +} | { + status: 'Enabled'; + minted: number; +}; + export type InfoReply = { bill: BillInfo; id: string; @@ -160,6 +168,7 @@ export type InfoReply = { keyset_id: string; discounted: number; status: 'Accepted'; + minting_status: MintingStatus; } | { bill: BillInfo; id: string; diff --git a/src/pages/quotes/QuotePage.tsx b/src/pages/quotes/QuotePage.tsx index 137ba2e..995f4ca 100644 --- a/src/pages/quotes/QuotePage.tsx +++ b/src/pages/quotes/QuotePage.tsx @@ -220,13 +220,13 @@ function DenyConfirmDrawer({ children, onSubmit, ...drawerProps }: DenyConfirmDr function QuoteActions({ value, isFetching, - newKeyset, + mintingEnabled, ebillPaid, requestedToPay, }: { value: InfoReply isFetching: boolean - newKeyset: boolean + mintingEnabled: boolean ebillPaid: boolean requestedToPay: boolean }) { @@ -471,7 +471,7 @@ function QuoteActions({ trigger={