mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
feat(native): ask for the separate TREK Cloud deviations agreement before an in-app purchase
The claim screen loads the agreement text and its version from /api/iap/consent, shows it with its own checkbox and buys nothing until it is ticked. The redeem sends consent { acceptedDeviations, version }; a refusal for an outdated text reloads it and asks again without a second purchase.
This commit is contained in:
@@ -1302,3 +1302,35 @@ a.linkbtn {
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* The separate § 327h agreement on the claim screen: its own box, ticked by hand. */
|
||||
.consent {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: flex-start;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--edge);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.45;
|
||||
max-height: 34vh;
|
||||
overflow-y: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
.consent input {
|
||||
flex: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 1px 0 0;
|
||||
accent-color: var(--ink);
|
||||
}
|
||||
.consent strong {
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.consent.bad {
|
||||
border-color: var(--danger);
|
||||
animation: shake 0.35s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user