2022-01-28 09:19:49 +01:00
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Popups 0.1
|
2021-09-28 18:04:06 +03:00
|
|
|
import utils 1.0
|
2020-07-09 11:21:45 -04:00
|
|
|
|
2022-01-28 09:19:49 +01:00
|
|
|
StatusModal {
|
|
|
|
id: root
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
2020-07-16 11:20:29 -04:00
|
|
|
//% "Get Status at https://status.im"
|
|
|
|
readonly property string getStatusText: qsTrId("get-status-at-https---status-im")
|
2020-07-09 11:21:45 -04:00
|
|
|
|
2022-01-28 09:19:49 +01:00
|
|
|
property var rootStore
|
|
|
|
|
2020-07-16 11:20:29 -04:00
|
|
|
//% "Download Status link"
|
2022-01-28 09:19:49 +01:00
|
|
|
header.title: qsTrId("download-status-link")
|
2020-07-09 11:21:45 -04:00
|
|
|
height: 156
|
|
|
|
|
2022-01-28 09:19:49 +01:00
|
|
|
StatusDescriptionListItem {
|
|
|
|
subTitle: root.getStatusText
|
|
|
|
tooltip.text: qsTr("Copy to clipboard")
|
|
|
|
icon.name: "copy"
|
|
|
|
iconButton.onClicked: {
|
|
|
|
root.rootStore.copyToClipboard(Constants.statusLinkPrefix)
|
|
|
|
tooltip.visible = !tooltip.visible
|
|
|
|
}
|
|
|
|
width: parent.width
|
2020-07-09 11:21:45 -04:00
|
|
|
}
|
|
|
|
}
|