mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-11 06:06:30 +00:00
Created new PasswordView.qml component. Added logic in new component: - Type of characters introduced. - Length of strength indicator bar depending on characters length. - Show/hide icons. - Error messages. - Added algorithm for password categorisation. Added Onboarding screens and modified flow. Replaced ChangePasswordModal content. Closes #4785
34 lines
709 B
QML
34 lines
709 B
QML
import QtQuick 2.13
|
|
|
|
import "../popups"
|
|
import "../stores"
|
|
import "../shared"
|
|
|
|
Item {
|
|
property var onClosed: function () {}
|
|
|
|
signal showCreatePasswordView()
|
|
|
|
id: genKeyView
|
|
anchors.fill: parent
|
|
|
|
Component.onCompleted: {
|
|
genKeyModal.open()
|
|
}
|
|
|
|
GenKeyModal {
|
|
property bool wentNext: false
|
|
id: genKeyModal
|
|
onNextClick: function (selectedIndex, displayName) {
|
|
wentNext = true
|
|
OnboardingStore.setCurrentAccountAndDisplayName(selectedIndex, displayName)
|
|
showCreatePasswordView()
|
|
}
|
|
onClosed: function () {
|
|
if (!wentNext) {
|
|
genKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
}
|