2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-20 10:21:23 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.popups 1.0
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../panels"
|
|
|
|
import "../stores"
|
2020-06-03 16:49:18 +00:00
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-06-18 15:56:53 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Manage Assets"
|
|
|
|
title: qsTrId("manage-assets")
|
2020-06-18 15:56:53 +00:00
|
|
|
|
|
|
|
TokenSettingsModalContent {
|
|
|
|
id: settingsModalContent
|
2021-01-12 14:30:01 +00:00
|
|
|
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
|
2021-10-05 20:50:22 +00:00
|
|
|
defaultTokenList: RootStore.defaultTokenList
|
|
|
|
customTokenList: RootStore.customTokenList
|
|
|
|
|
|
|
|
onToggleAssetClicked: {
|
|
|
|
RootStore.toggleAsset(symbol)
|
|
|
|
}
|
|
|
|
onRemoveCustomTokenTriggered: {
|
|
|
|
RootStore.removeCustomToken(address)
|
|
|
|
}
|
2020-06-03 16:49:18 +00:00
|
|
|
}
|
|
|
|
|
2021-01-12 14:30:01 +00:00
|
|
|
footer: StatusButton {
|
2020-06-18 15:56:53 +00:00
|
|
|
anchors.right: parent.right
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Add custom token"
|
2021-01-12 14:30:01 +00:00
|
|
|
text: qsTrId("add-custom-token")
|
2020-06-18 15:56:53 +00:00
|
|
|
anchors.top: parent.top
|
2020-11-02 18:18:13 +00:00
|
|
|
onClicked: addCustomTokenModal.openEditable()
|
2020-06-03 16:49:18 +00:00
|
|
|
}
|
|
|
|
}
|