mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-24 04:28:58 +00:00
fixes #4621 the crash seemed to be caused by signal of signal. Simplifying the flow remove the need for this signal of signal
56 lines
1.3 KiB
QML
56 lines
1.3 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
|
|
import utils 1.0
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import shared.popups 1.0
|
|
import "../panels"
|
|
import "../stores"
|
|
|
|
// TODO: replace with StatusModal
|
|
ModalPopup {
|
|
id: popup
|
|
//% "Manage Assets"
|
|
title: qsTrId("manage-assets")
|
|
|
|
TokenSettingsModalContent {
|
|
id: settingsModalContent
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
anchors.top: parent.top
|
|
anchors.leftMargin: Style.current.padding
|
|
anchors.rightMargin: Style.current.padding
|
|
defaultTokenList: RootStore.defaultTokenList
|
|
customTokenList: RootStore.customTokenList
|
|
|
|
onToggleVisibleClicked: {
|
|
RootStore.toggleVisible(symbol)
|
|
}
|
|
onRemoveCustomTokenTriggered: {
|
|
RootStore.removeCustomToken(address)
|
|
}
|
|
onShowTokenDetailsTriggered: {
|
|
addShowTokenModal.openWithData(address, name, symbol, decimals);
|
|
}
|
|
|
|
AddShowTokenModal{
|
|
id: addShowTokenModal
|
|
}
|
|
}
|
|
|
|
footer: StatusButton {
|
|
anchors.right: parent.right
|
|
//% "Add custom token"
|
|
text: qsTrId("add-custom-token")
|
|
anchors.top: parent.top
|
|
onClicked: {
|
|
addShowTokenModal.openEditable();
|
|
}
|
|
}
|
|
|
|
|
|
}
|