don't allow username change for own user

This commit is contained in:
Iuri Matias 2021-05-03 17:19:46 -04:00
parent 7329522a28
commit 11e6ca7e42
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,7 @@ ModalPopup {
TextWithLabel {
id: chatSettings
visible: profileModel.profile.pubKey !== fromAuthor
//% "Chat settings"
label: qsTrId("chat-settings")
//% "Nickname"
@ -215,6 +216,7 @@ ModalPopup {
SVGImage {
id: nicknameCaret
visible: profileModel.profile.pubKey !== fromAuthor
source: "../../../img/caret.svg"
rotation: -90
anchors.right: parent.right
@ -233,6 +235,7 @@ ModalPopup {
StyledText {
id: nicknameText
visible: profileModel.profile.pubKey !== fromAuthor
//% "None"
text: nickname ? nickname : qsTrId("none")
anchors.right: nicknameCaret.left