status-desktop/ui/imports/shared/popups/walletconnect/DAppConfirmDisconnectPopup.qml
Roman Chornii c4d930ef88
fix(dapps) fail to process a transaction if missing usual fields (#15481)
Updates: #15189

Co-authored-by: Stefan <stefand@status.im>
2024-07-15 12:23:35 +03:00

63 lines
1.6 KiB
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtQml.Models 2.15
import StatusQ.Controls 0.1
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Core.Utils 0.1
import StatusQ.Components 0.1
import StatusQ.Popups.Dialog 0.1
StatusDialog {
id: root
objectName: "dappConfirmDisconnectPopup"
property string dappName
property url dappIcon
property string dappUrl
implicitWidth: 640
contentItem: StatusBaseText {
text: qsTr("Are you sure you want to disconnect %1 from all accounts?").arg(StringUtils.extractDomainFromLink(dappUrl))
wrapMode: Text.WrapAnywhere
}
header: StatusDialogHeader {
leftComponent: StatusRoundedImage {
height: 40
width: height
image.source: root.dappIcon
}
headline.title: qsTr("Disconnect %1").arg(root.dappName)
headline.subtitle: StringUtils.extractDomainFromLink(root.dappUrl)
actions.closeButton.visible: true
actions.closeButton.onClicked: root.close()
}
footer: StatusDialogFooter {
spacing: 16
rightButtons: ObjectModel {
StatusFlatButton {
text: qsTr("Cancel")
onClicked: root.reject();
}
StatusButton {
type: StatusButton.Danger
text: qsTr("Disconnect dApp")
icon.name: "disconnect"
onClicked: {
root.accepted();
root.close();
}
}
}
}
}