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