2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-06-11 21:23:27 +00:00
|
|
|
import "../../imports"
|
|
|
|
import "../../shared"
|
2021-01-28 11:04:10 +00:00
|
|
|
import "../../shared/status"
|
2020-06-11 21:23:27 +00:00
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
property var onAccountSelect: function () {}
|
2020-06-12 20:47:44 +00:00
|
|
|
property var onOpenModalClick: function () {}
|
2020-06-11 21:23:27 +00:00
|
|
|
id: popup
|
2020-09-29 06:39:29 +00:00
|
|
|
title: qsTr("Your keys")
|
2020-06-11 21:23:27 +00:00
|
|
|
|
|
|
|
AccountList {
|
|
|
|
id: accountList
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
accounts: loginModel
|
2020-06-13 15:17:54 +00:00
|
|
|
isSelected: function (index, address) {
|
|
|
|
return loginModel.currentAccount.address === address
|
|
|
|
}
|
|
|
|
|
2020-06-11 21:23:27 +00:00
|
|
|
onAccountSelect: function(index) {
|
|
|
|
popup.onAccountSelect(index)
|
|
|
|
popup.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
footer: StatusButton {
|
2020-06-12 20:47:44 +00:00
|
|
|
anchors.bottom: parent.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-11 21:23:27 +00:00
|
|
|
anchors.right: parent.right
|
2021-01-28 11:04:10 +00:00
|
|
|
text: qsTr("Add another existing key")
|
2020-06-11 21:23:27 +00:00
|
|
|
|
|
|
|
onClicked : {
|
2020-06-12 20:47:44 +00:00
|
|
|
onOpenModalClick()
|
|
|
|
popup.close()
|
2020-06-11 21:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;formeditorColor:"#ffffff";height:500;width:400}
|
|
|
|
}
|
|
|
|
##^##*/
|