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