2020-07-09 15:21:45 +00:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.3
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-14 11:09:03 +00:00
|
|
|
import "../controls"
|
|
|
|
import "../"
|
2020-07-09 15:21:45 +00:00
|
|
|
|
2021-10-14 10:24:37 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-07-09 15:21:45 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
2020-07-16 15:20:29 +00:00
|
|
|
//% "Get Status at https://status.im"
|
|
|
|
readonly property string getStatusText: qsTrId("get-status-at-https---status-im")
|
2020-07-09 15:21:45 +00:00
|
|
|
|
2020-07-16 15:20:29 +00:00
|
|
|
//% "Download Status link"
|
|
|
|
title: qsTrId("download-status-link")
|
2020-07-09 15:21:45 +00:00
|
|
|
height: 156
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: linkText
|
|
|
|
text: popup.getStatusText
|
|
|
|
}
|
|
|
|
|
|
|
|
CopyToClipBoardButton {
|
|
|
|
anchors.left: linkText.right
|
|
|
|
anchors.leftMargin: Style.current.smallPadding
|
|
|
|
anchors.verticalCenter: linkText.verticalCenter
|
2021-01-12 14:56:17 +00:00
|
|
|
textToCopy: popup.getStatusText.substr(popup.getStatusText.indexOf("https"))
|
2020-07-09 15:21:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|