status-desktop/ui/app/AppLayouts/Onboarding/stores/LoginStore.qml

21 lines
434 B
QML
Raw Normal View History

pragma Singleton
import QtQuick 2.13
QtObject {
2021-10-17 10:44:21 +00:00
property var loginModuleInst: loginModule
property var currentAccount: loginModuleInst.selectedAccount
function login(password) {
2021-10-17 10:44:21 +00:00
loginModuleInst.login(password)
}
function setCurrentAccount(index) {
2021-10-17 10:44:21 +00:00
loginModuleInst.setSelectedAccountByIndex(index)
}
function rowCount() {
2021-10-17 10:44:21 +00:00
return loginModuleInst.accountsModel.rowCount()
}
}