status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/Retry.qml

20 lines
453 B
QML

import QtQuick 2.3
import "../../../../../shared"
import "../../../../../imports"
StyledText {
id: retryLbl
color: Style.current.red
//% "Resend"
text: qsTrId("resend-message")
font.pixelSize: 12
visible: isCurrentUser && (timeout || isExpired)
MouseArea {
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onClicked: {
chatsModel.resendMessage(chatId, messageId)
}
}
}