Skip to content

Commit ff08e04

Browse files
committed
console: Add correct links
1 parent c695efa commit ff08e04

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

  • pkg/webui

pkg/webui/console/containers/gateway-onboarding-form/gateway-provisioning-form/gateway-claim-form-section/index.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const smUrl = 'https://accounts.thethingsindustries.com'
4141

4242
const m = defineMessages({
4343
claimWarning:
44-
'We detected a Managed gateway. To claim this gateway, please use the <strong>owner token printed on the gateway</strong>, or the <strong>gateway fleet owner token</strong>.',
44+
'We detected a Managed gateway. To claim this gateway with a subscription, use the owner token printed on the gateway, or add it to your Gateway Fleet using your <Link>fleet owner token.</Link>',
4545
fleet: 'Fleet',
4646
})
4747

@@ -105,7 +105,15 @@ const GatewayClaimFormSection = () => {
105105
info
106106
content={m.claimWarning}
107107
messageValues={{
108-
strong: txt => <strong>{txt}</strong>,
108+
Link: val => (
109+
<Link.Anchor
110+
secondary
111+
href={`${smUrl}/docs/hardware/gateways/models/thethingsindoorgatewaypro/#finding-your-owner-token`}
112+
external
113+
>
114+
{val}
115+
</Link.Anchor>
116+
),
109117
}}
110118
className="mb-0"
111119
/>
@@ -150,14 +158,16 @@ const GatewayClaimFormSection = () => {
150158
}
151159
descriptionValues={{
152160
Link: val => (
153-
<Link.Anchor secondary href={`${smUrl}/dashboard`} external>
161+
<Link.Anchor secondary href={`${smUrl}/dashboard/subscriptions?type=gateway`} external>
154162
{val}
155163
</Link.Anchor>
156164
),
157165
}}
158166
encode={btoa}
159167
decode={atob}
160168
sensitive
169+
data-1p-ignore
170+
data-lpignore
161171
autoFocus
162172
/>
163173
<Form.Field

pkg/webui/lib/shared-messages.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ export default defineMessages({
279279
fetching: 'Fetching data…',
280280
firmwareVersion: 'Firmware version',
281281
fleetInfo:
282-
'Adding a gateway to a Fleet will claim the gateway using an <Link>available Slot.</Link>',
283-
fleetTokenInfo: 'Your fleet token is available in <Link>your account.</Link>',
282+
'Adding a gateway to a Fleet will claim the gateway using an available Slot. <Link>Read docs.</Link>',
283+
fleetTokenInfo:
284+
'Log in to <Link>your billing account.</Link> Select the fleet and copy the token.',
284285
format: 'Format',
285286
fpNotFoundError:
286287
'The LoRaWAN version <code>{lorawanVersion}</code> does not support the <code>{freqPlan}</code> frequency plan. Please choose a different MAC version or frequency plan.',

0 commit comments

Comments
 (0)