chore(storybook): add ChangePasswordView storybook page
Updates: #13893
This commit is contained in:
parent
b37f0f0fd8
commit
41d762078d
|
@ -0,0 +1,62 @@
|
|||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Extras 1.4
|
||||
|
||||
import shared.views 1.0
|
||||
import AppLayouts.Profile.views 1.0
|
||||
|
||||
import utils 1.0
|
||||
|
||||
import Storybook 1.0
|
||||
|
||||
SplitView {
|
||||
orientation: Qt.Vertical
|
||||
|
||||
Logs { id: logs }
|
||||
|
||||
StackLayout {
|
||||
id: wrapper
|
||||
SplitView.fillWidth: true
|
||||
SplitView.fillHeight: true
|
||||
|
||||
ChangePasswordView {
|
||||
id: passwordView
|
||||
|
||||
implicitWidth: parent.width
|
||||
implicitHeight: parent.height
|
||||
|
||||
contentWidth: 560
|
||||
sectionTitle: "Password"
|
||||
|
||||
passwordStrengthScoreFunction: (newPass) => Math.min(newPass.length, 4)
|
||||
|
||||
privacyStore: QtObject{
|
||||
property QtObject privacyModule: QtObject {
|
||||
signal passwordChanged(success: bool, errorMsg: string)
|
||||
signal storeToKeychainError(errorDescription: string)
|
||||
signal storeToKeychainSuccess()
|
||||
}
|
||||
}
|
||||
|
||||
property QtObject localAccountSettings: QtObject {
|
||||
property string storeToKeychainValue: Constants.keychain.storedValue.notNow
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LogsAndControlsPanel {
|
||||
id: logsAndControlsPanel
|
||||
|
||||
SplitView.minimumHeight: 100
|
||||
SplitView.preferredHeight: 150
|
||||
|
||||
logsView.logText: logs.logText
|
||||
|
||||
RowLayout {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// category: Views
|
Loading…
Reference in New Issue