mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
fix: in profile popup display Username instead of ENS Username if ENS is not verified
Closes #3496.
This commit is contained in:
parent
e42b1d249e
commit
2e9c5047bb
@ -25,7 +25,7 @@ StatusModal {
|
|||||||
property var alias: ""
|
property var alias: ""
|
||||||
|
|
||||||
readonly property int innerMargin: 20
|
readonly property int innerMargin: 20
|
||||||
|
|
||||||
property bool isEnsVerified: false
|
property bool isEnsVerified: false
|
||||||
property bool noFooter: false
|
property bool noFooter: false
|
||||||
property bool isBlocked: false
|
property bool isBlocked: false
|
||||||
@ -90,7 +90,7 @@ StatusModal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
StatusDescriptionListItem {
|
StatusDescriptionListItem {
|
||||||
title: qsTr("ENS username")
|
title: ((isCurrentUser && profileModel.ens.preferredUsername) || isEnsVerified) ? qsTr("ENS username") : qsTr("Username")
|
||||||
subTitle: isCurrentUser ? profileModel.ens.preferredUsername || userName : userName
|
subTitle: isCurrentUser ? profileModel.ens.preferredUsername || userName : userName
|
||||||
tooltip.text: qsTr("Copy to clipboard")
|
tooltip.text: qsTr("Copy to clipboard")
|
||||||
icon.name: "copy"
|
icon.name: "copy"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user