2024-02-20 17:19:36 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml.Models 2.15
|
|
|
|
|
|
|
|
import StatusQ 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
CommonContactDialog {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
readonly property bool removeIDVerification: ctrlRemoveIDVerification.checked
|
|
|
|
readonly property bool markAsUntrusted: ctrlMarkAsUntrusted.checked
|
|
|
|
|
|
|
|
title: qsTr("Remove contact")
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.bottomMargin: Theme.halfPadding
|
2024-02-20 17:19:36 +00:00
|
|
|
text: qsTr("You and %1 will no longer be contacts").arg(mainDisplayName)
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: ctrlRemoveIDVerification
|
2024-10-29 18:08:12 +00:00
|
|
|
visible: contactDetails.trustStatus === Constants.trustStatus.trusted
|
2024-02-20 17:19:36 +00:00
|
|
|
checked: visible
|
|
|
|
enabled: false
|
2024-10-29 18:08:12 +00:00
|
|
|
text: qsTr("Remove trust mark")
|
2024-02-20 17:19:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: ctrlMarkAsUntrusted
|
|
|
|
visible: contactDetails.trustStatus !== Constants.trustStatus.untrustworthy
|
|
|
|
text: qsTr("Mark %1 as untrusted").arg(mainDisplayName)
|
|
|
|
}
|
|
|
|
|
|
|
|
rightButtons: ObjectModel {
|
|
|
|
StatusFlatButton {
|
|
|
|
text: qsTr("Cancel")
|
|
|
|
onClicked: root.close()
|
|
|
|
}
|
|
|
|
StatusButton {
|
|
|
|
type: StatusBaseButton.Type.Danger
|
|
|
|
text: qsTr("Remove contact")
|
2024-06-24 08:36:26 +00:00
|
|
|
objectName: "removeContactButton"
|
2024-02-20 17:19:36 +00:00
|
|
|
onClicked: root.accepted()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|