2020-07-14 15:35:21 +00:00
|
|
|
import QtQuick 2.3
|
2021-10-01 15:58:36 +00:00
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2021-09-28 15:04:06 +00:00
|
|
|
import utils 1.0
|
2020-07-14 15:35:21 +00:00
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: retryLbl
|
|
|
|
color: Style.current.red
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Resend"
|
|
|
|
text: qsTrId("resend-message")
|
2020-11-25 10:46:18 +00:00
|
|
|
font.pixelSize: Style.current.tertiaryTextFontSize
|
2020-07-16 17:27:09 +00:00
|
|
|
visible: isCurrentUser && (timeout || isExpired)
|
2021-10-01 15:58:36 +00:00
|
|
|
property bool isCurrentUser: false
|
|
|
|
property bool isExpired: false
|
|
|
|
property bool timeout: false
|
|
|
|
signal clicked()
|
2020-07-14 15:35:21 +00:00
|
|
|
MouseArea {
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: {
|
2021-10-01 15:58:36 +00:00
|
|
|
retryLbl.clicked();
|
2020-07-14 15:35:21 +00:00
|
|
|
}
|
|
|
|
}
|
2020-11-25 10:46:18 +00:00
|
|
|
}
|