feat(rust): a player's own Rust account on the phone — M15 (module-rust phase 8, Android leg B) #48
@@ -188,6 +188,23 @@ private fun LinkRow(link: RustLinkDto, busy: Boolean, onUnlink: () -> Unit) {
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
|
||||
// When, and which server minted the code. Not part of the
|
||||
// identity — a link is fleet-wide — but it is where a support
|
||||
// conversation starts, and the website's own row says it.
|
||||
val when_ = rustAgo(link.linkedAt)
|
||||
val where = link.serverId?.takeIf { it.isNotBlank() }
|
||||
|
||||
if (when_ != null || where != null) {
|
||||
Text(
|
||||
text = listOfNotNull(
|
||||
when_?.let { stringResource(R.string.rust_account_linked_when, it) },
|
||||
where,
|
||||
).joinToString(" · "),
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
TextButton(onClick = onUnlink, enabled = !busy) {
|
||||
|
||||
@@ -621,6 +621,7 @@
|
||||
<string name="rust_link_error">Could not link that code.</string>
|
||||
<string name="rust_unlink_action">Unlink</string>
|
||||
<string name="rust_unlink_error">Could not unlink that account.</string>
|
||||
<string name="rust_account_linked_when">linked %1$s</string>
|
||||
<string name="rust_account_none">No Steam account is linked to this profile yet.</string>
|
||||
<string name="rust_account_fleet_note">A link covers every server this community runs — a Steam account is one person wherever they play. You can also type /unlink in game.</string>
|
||||
<string name="rust_held_title">What you can do in game</string>
|
||||
|
||||
Reference in New Issue
Block a user