status-desktop/ui/imports/shared/popups/MarkAsUntrustedPopup.qml
Jonathan Rainville d511c25d2e
remove old code about ID verification and fix trustStatus bug (#16548)
* chore: remove old code about ID verification

* refactor(trust): remove untrustowrthy and isVerified from items and use trustStatus

* chore(status-go): up status-go to get fix for trustStatus reseting

Fixes #16392

* chore: remove verified/trusted profile showcase category
2024-10-29 14:08:12 -04:00

53 lines
1.3 KiB
QML

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 removeContact: ctrlRemoveContact.checked
title: qsTr("Mark as untrusted")
StatusBaseText {
Layout.fillWidth: true
Layout.bottomMargin: Theme.halfPadding
text: qsTr("%1 will be marked as untrusted. This mark will only be visible to you.").arg(mainDisplayName)
wrapMode: Text.WordWrap
}
StatusCheckBox {
id: ctrlRemoveIDVerification
visible: contactDetails.trustStatus === Constants.trustStatus.trusted
checked: visible
enabled: false
text: qsTr("Remove trust mark")
}
StatusCheckBox {
id: ctrlRemoveContact
visible: contactDetails.isContact
text: qsTr("Remove contact")
}
rightButtons: ObjectModel {
StatusFlatButton {
text: qsTr("Cancel")
onClicked: root.close()
}
StatusButton {
type: StatusBaseButton.Type.Danger
text: qsTr("Mark as untrusted")
onClicked: root.accepted()
}
}
}