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
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Resend")
|
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
|
|
|
}
|