From a425f289a46dc1f26c892c28622cb82dea02875e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 2 Jun 2017 02:51:17 +0200 Subject: fix display of contract terms rendering when already paid --- src/webex/pages/confirm-contract.html | 9 +++++++++ src/webex/pages/confirm-contract.tsx | 4 ++++ 2 files changed, 13 insertions(+) (limited to 'src/webex') diff --git a/src/webex/pages/confirm-contract.html b/src/webex/pages/confirm-contract.html index e5ba68404..394de582a 100644 --- a/src/webex/pages/confirm-contract.html +++ b/src/webex/pages/confirm-contract.html @@ -56,6 +56,15 @@ font-weight: bold; background: #FF8A8A; } + + .okaybox { + border: 1px solid; + display: inline-block; + margin: 1em; + padding: 1em; + font-weight: bold; + background: #00FA9A; + } diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx index e80aed19d..7d5523416 100644 --- a/src/webex/pages/confirm-contract.tsx +++ b/src/webex/pages/confirm-contract.tsx @@ -105,6 +105,7 @@ interface ContractPromptState { proposal: ProposalRecord|null; error: string|null; payDisabled: boolean; + alreadyPaid: boolean; exchanges: null|ExchangeRecord[]; } @@ -153,6 +154,8 @@ class ContractPrompt extends React.Component
+ {(this.state.alreadyPaid ?

You already paid for this, clicking "Confirm payment" will not cost money again.

:

)} {(this.state.error ?

{this.state.error}

:

)}

-- cgit v1.2.3