ui: use 'tlpub' prefix for Tailnet lock key (#332)

Fixes tailscale/tailscale#11708
Updates tailscale/corp#18202

Signed-off-by: kari-ts <kari@tailscale.com>
pull/333/head
kari-ts 7 months ago committed by GitHub
parent 56da7b66d0
commit 39d1d0b3c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,6 +44,7 @@ fun TailnetLockSetupView(
val statusItems = model.statusItems.collectAsState().value val statusItems = model.statusItems.collectAsState().value
val nodeKey = model.nodeKey.collectAsState().value val nodeKey = model.nodeKey.collectAsState().value
val tailnetLockKey = model.tailnetLockKey.collectAsState().value val tailnetLockKey = model.tailnetLockKey.collectAsState().value
val tailnetLockTlPubKey = tailnetLockKey.replace("nlpub", "tlpub")
Scaffold(topBar = { Header(R.string.tailnet_lock, onBack = backToSettings) }) { innerPadding -> Scaffold(topBar = { Header(R.string.tailnet_lock, onBack = backToSettings) }) { innerPadding ->
LoadingIndicator.Wrap { LoadingIndicator.Wrap {
@ -76,7 +77,7 @@ fun TailnetLockSetupView(
Lists.SectionDivider() Lists.SectionDivider()
ClipboardValueView( ClipboardValueView(
value = tailnetLockKey, value = tailnetLockTlPubKey,
title = stringResource(R.string.tailnet_lock_key), title = stringResource(R.string.tailnet_lock_key),
subtitle = stringResource(R.string.tailnet_lock_key_explainer)) subtitle = stringResource(R.string.tailnet_lock_key_explainer))
} }

Loading…
Cancel
Save