status-desktop/ui/onboarding/Login/SelectAnotherAccountModal.qml

46 lines
1013 B
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import "../../imports"
import "../../shared"
import "../../shared/status"
ModalPopup {
property var onAccountSelect: function () {}
2020-06-12 20:47:44 +00:00
property var onOpenModalClick: function () {}
id: popup
title: qsTr("Your keys")
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
}
onAccountSelect: function(index) {
popup.onAccountSelect(index)
popup.close()
}
}
footer: StatusButton {
2020-06-12 20:47:44 +00:00
anchors.bottom: parent.bottom
anchors.topMargin: Style.current.padding
anchors.right: parent.right
text: qsTr("Add another existing key")
onClicked : {
2020-06-12 20:47:44 +00:00
onOpenModalClick()
popup.close()
}
}
}
/*##^##
Designer {
D{i:0;formeditorColor:"#ffffff";height:500;width:400}
}
##^##*/