parent
fe08742cc3
commit
663364452e
|
@ -370,10 +370,6 @@ SettingsContentBase {
|
|||
sendModal: root.rootStore.sendModalPopup
|
||||
}
|
||||
|
||||
DappPermissionsView {
|
||||
walletStore: root.walletStore
|
||||
}
|
||||
|
||||
Component {
|
||||
id: addNewAccountButtonComponent
|
||||
StatusButton {
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
import QtQuick 2.13
|
||||
|
||||
import shared.status 1.0
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
import StatusQ.Components 0.1
|
||||
import utils 1.0
|
||||
|
||||
import "../../stores"
|
||||
import "../../controls"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
property WalletStore walletStore
|
||||
|
||||
Column {
|
||||
id: column
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
width: parent.width
|
||||
|
||||
PermissionsListView {
|
||||
id: permissionsList
|
||||
width: parent.width
|
||||
walletStore: root.walletStore
|
||||
}
|
||||
}
|
||||
}
|
|
@ -24,7 +24,6 @@ Column {
|
|||
signal goToNetworksView()
|
||||
signal goToAccountOrderView()
|
||||
signal goToAccountView(var account)
|
||||
signal goToDappPermissionsView()
|
||||
signal goToManageTokensView()
|
||||
signal goToSavedAddressesView()
|
||||
|
||||
|
|
|
@ -1,73 +0,0 @@
|
|||
import QtQuick 2.14
|
||||
import QtWebEngine 1.10
|
||||
import shared.status 1.0
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import StatusQ.Core.Theme 0.1
|
||||
import StatusQ.Components 0.1
|
||||
import utils 1.0
|
||||
|
||||
import AppLayouts.Profile.stores 1.0
|
||||
|
||||
Column {
|
||||
id: root
|
||||
|
||||
property WalletStore walletStore
|
||||
|
||||
Repeater {
|
||||
id: permissionsList
|
||||
model: walletStore.dappList
|
||||
delegate: Item {
|
||||
property string dappName: model.name
|
||||
width: parent.width
|
||||
height: listItem.height + spacer.height
|
||||
WebEngineView {
|
||||
id: webView
|
||||
url: dappName.startsWith("http") ? dappName : `http://${dappName}`
|
||||
visible: false
|
||||
}
|
||||
StatusListItem {
|
||||
id: listItem
|
||||
title: webView.title !== "" ? webView.title : dappName
|
||||
subTitle: dappName
|
||||
asset.name: webView.icon != "" ? webView.icon : Style.svg("compassActive")
|
||||
asset.isImage: true
|
||||
width: parent.width
|
||||
highlighted: true
|
||||
sensor.enabled: false
|
||||
components: [
|
||||
StatusButton {
|
||||
text: model.accounts.count > 1 ? qsTr("Disconnect All") : qsTr("Disconnect")
|
||||
size: StatusBaseButton.Size.Small
|
||||
type: StatusBaseButton.Type.Danger
|
||||
onClicked: {
|
||||
walletStore.disconnect(dappName)
|
||||
}
|
||||
}
|
||||
]
|
||||
bottomModel: model.accounts
|
||||
bottomDelegate: StatusListItemTag {
|
||||
property int outerIndex: listItem.index || 0
|
||||
|
||||
title: model.name
|
||||
|
||||
asset.emoji: !!model.emoji ? model.emoji: ""
|
||||
asset.color: Utils.getColorForId(model.colorId)
|
||||
asset.name: !model.emoji ? "filled-account": ""
|
||||
asset.letterSize: 14
|
||||
asset.isLetterIdenticon: !!model.emoji
|
||||
asset.bgColor: Theme.palette.indirectColor1
|
||||
onClicked: {
|
||||
walletStore.disconnectAddress(dappName, model.address)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
id: spacer
|
||||
height: Style.current.bigPadding
|
||||
width: parent.width
|
||||
}
|
||||
} // Item
|
||||
} // Repeater
|
||||
} // Column
|
|
@ -1,10 +1,8 @@
|
|||
AccountOrderView 1.0 AccountOrderView.qml
|
||||
AccountView 1.0 AccountView.qml
|
||||
DappPermissionsView 1.0 DappPermissionsView.qml
|
||||
EditNetworkView 1.0 EditNetworkView.qml
|
||||
EditNetworkForm 1.0 EditNetworkForm.qml
|
||||
EditNetworkView 1.0 EditNetworkView.qml
|
||||
MainView 1.0 MainView.qml
|
||||
ManageTokensView 1.0 ManageTokensView.qml
|
||||
NetworksView 1.0 NetworksView.qml
|
||||
PermissionsListView 1.0 PermissionsListView.qml
|
||||
SavedAddressesView 1.0 SavedAddressesView.qml
|
||||
SavedAddressesView 1.0 SavedAddressesView.qml
|
||||
|
|
Loading…
Reference in New Issue