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
|
|
|
|
|
2022-04-04 13:26:30 +02:00
|
|
|
readonly property string getStatusText: qsTr("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
|
|
|
|
|
2022-04-04 13:26:30 +02:00
|
|
|
header.title: qsTr("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")
|
2022-08-11 14:55:08 +03:00
|
|
|
asset.name: "copy"
|
2022-01-28 09:19:49 +01:00
|
|
|
iconButton.onClicked: {
|
|
|
|
root.rootStore.copyToClipboard(Constants.statusLinkPrefix)
|
|
|
|
tooltip.visible = !tooltip.visible
|
|
|
|
}
|
|
|
|
width: parent.width
|
2020-07-09 11:21:45 -04:00
|
|
|
}
|
|
|
|
}
|