don't allow username change for own user
This commit is contained in:
parent
7329522a28
commit
11e6ca7e42
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue