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