Add user ID to the account editor page

For some reason this was never featured here, and it's always useful to
have another place to check and/or copy this ID.
This commit is contained in:
Joshua Goins
2026-02-11 19:36:23 -05:00
parent 35daae6b5d
commit cff27ca7db

View File

@@ -119,6 +119,26 @@ FormCard.FormCardPage {
text: root.connection ? root.connection.label : ""
}
FormCard.FormDelegateSeparator {}
FormCard.FormTextDelegate {
id: userIdDelegate
text: i18nc("@info:label", "User ID")
description: root.connection.localUserId
contentItem.children: QQC2.Button {
text: i18nc("@action:button", "Copy user ID to clipboard")
icon.name: "edit-copy"
display: QQC2.AbstractButton.IconOnly
onClicked: {
Clipboard.saveText(root.connection.localUserId);
}
QQC2.ToolTip.text: text
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip.visible: hovered
}
}
FormCard.FormDelegateSeparator {}
FormCard.FormButtonDelegate {
text: i18nc("@action:button", "Show QR Code")
icon.name: "view-barcode-qr-symbolic"