fix(@desktop/chat): Align message field placeholder with design

This commit is contained in:
Michał Cieślak 2022-07-15 12:32:26 +02:00 committed by Michał
parent 4f114ec513
commit 478b46f6b5
3 changed files with 10 additions and 12 deletions

View File

@ -477,13 +477,16 @@ ColumnLayout {
emojiPopup: root.emojiPopup
isContactBlocked: root.isBlocked
isActiveChannel: root.isActiveChannel
chatInputPlaceholder: root.isBlocked ?
qsTr("This user has been blocked.") :
qsTr("Type a message.")
anchors.bottom: parent.bottom
recentStickers: root.rootStore.stickersModuleInst.recent
stickerPackList: root.rootStore.stickersModuleInst.stickerPacks
chatType: chatContentModule? chatContentModule.chatDetails.type : Constants.chatType.unknown
Binding on chatInputPlaceholder {
when: root.isBlocked
value: qsTr("This user has been blocked.")
}
onSendTransactionCommandButtonClicked: {
if(!chatContentModule) {
console.debug("error on sending transaction command - chat content module is not set")

View File

@ -1616,15 +1616,10 @@ Do you wish to override the security check and continue?</translation>
<translation>Blocked</translation>
</message>
<message>
<location filename="../app/AppLayouts/Chat/views/ChatContentView.qml" line="484" />
<location filename="../app/AppLayouts/Chat/views/ChatContentView.qml" line="475" />
<source>This user has been blocked.</source>
<translation>This user has been blocked.</translation>
</message>
<message>
<location filename="../app/AppLayouts/Chat/views/ChatContentView.qml" line="485" />
<source>Type a message.</source>
<translation>Type a message.</translation>
</message>
</context>
<context>
<name>ChatContextMenuView</name>
@ -7807,8 +7802,8 @@ device, so only you can use them.</translation>
<message>
<location filename="../imports/shared/status/StatusChatInput.qml" line="60" />
<location filename="../imports/shared/status/StatusChatInput.qml" line="60" />
<source>Type a message.</source>
<translation>Type a message.</translation>
<source>Message</source>
<translation>Message</translation>
</message>
<message>
<location filename="../imports/shared/status/StatusChatInput.qml" line="645" />

View File

@ -57,7 +57,7 @@ Rectangle {
property int chatType
property string chatInputPlaceholder: qsTr("Type a message.")
property string chatInputPlaceholder: qsTr("Message")
property alias textInput: messageInputField
property bool isStatusUpdateInput: chatType === Constants.chatType.profile