fix: node key status dialog public key selection

This commit is contained in:
andrekir 2024-12-17 12:31:16 -03:00
parent 33f86dcf61
commit 8226207dbf
2 changed files with 8 additions and 1 deletions

View file

@ -92,9 +92,14 @@ private fun KeyStatusDialog(
Spacer(Modifier.height(16.dp))
if (key != null && title == R.string.encryption_pkc) {
val keyString = Base64.encodeToString(key.toByteArray(), Base64.NO_WRAP)
Text(
text = stringResource(id = R.string.config_security_public_key) + ":",
textAlign = TextAlign.Center,
)
Spacer(Modifier.height(8.dp))
SelectionContainer {
Text(
text = "Public Key: $keyString",
text = keyString,
textAlign = TextAlign.Center,
)
}