2024-02-20 18:52:07 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml.Models 2.15
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-21 15:07:13 +00:00
|
|
|
|
2024-02-20 18:52:07 +00:00
|
|
|
import StatusQ.Core 0.1
|
2021-10-21 15:07:13 +00:00
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2024-02-20 18:52:07 +00:00
|
|
|
CommonContactDialog {
|
|
|
|
id: root
|
2020-12-05 20:07:22 +00:00
|
|
|
|
2024-02-20 18:52:07 +00:00
|
|
|
title: qsTr("Unblock user")
|
2020-12-05 20:07:22 +00:00
|
|
|
|
2024-02-20 18:52:07 +00:00
|
|
|
StatusBaseText {
|
2024-07-18 10:57:24 +00:00
|
|
|
objectName: "unblockingText"
|
2024-02-20 18:52:07 +00:00
|
|
|
Layout.fillWidth: true
|
2020-12-05 20:07:22 +00:00
|
|
|
wrapMode: Text.WordWrap
|
2024-02-20 18:52:07 +00:00
|
|
|
text: qsTr("Unblocking %1 will allow new messages you receive from %1 to reach you.").arg(mainDisplayName)
|
2020-12-05 20:07:22 +00:00
|
|
|
}
|
2022-02-09 09:43:23 +00:00
|
|
|
|
2024-02-20 18:52:07 +00:00
|
|
|
rightButtons: ObjectModel {
|
|
|
|
StatusFlatButton {
|
2024-07-18 10:57:24 +00:00
|
|
|
objectName: "cancelButton"
|
2024-02-20 18:52:07 +00:00
|
|
|
text: qsTr("Cancel")
|
|
|
|
onClicked: root.close()
|
|
|
|
}
|
2021-01-28 11:04:10 +00:00
|
|
|
StatusButton {
|
2024-07-18 10:57:24 +00:00
|
|
|
objectName: "unblockUserButton"
|
2021-10-21 15:07:13 +00:00
|
|
|
type: StatusBaseButton.Type.Danger
|
2024-02-20 18:52:07 +00:00
|
|
|
text: qsTr("Unblock")
|
|
|
|
onClicked: root.accepted()
|
2020-12-05 20:07:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|