2024-02-09 11:31:37 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
|
|
|
import AppLayouts.Profile.popups 1.0
|
|
|
|
|
|
|
|
import Storybook 1.0
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
PopupBackground {
|
|
|
|
SplitView.fillWidth: true
|
|
|
|
SplitView.fillHeight: true
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: reopenButton
|
|
|
|
anchors.centerIn: parent
|
|
|
|
text: "Reopen"
|
|
|
|
|
|
|
|
onClicked: modal.open()
|
|
|
|
}
|
|
|
|
|
|
|
|
ConfirmChangePasswordModal {
|
|
|
|
id: modal
|
2024-10-08 12:51:48 +00:00
|
|
|
|
2024-02-09 11:31:37 +00:00
|
|
|
visible: true
|
2024-10-08 12:51:48 +00:00
|
|
|
modal: false
|
|
|
|
|
|
|
|
onChangePasswordRequested: passwordChangedTimer.start()
|
|
|
|
|
2024-02-09 11:31:37 +00:00
|
|
|
Timer {
|
|
|
|
id: passwordChangedTimer
|
2024-10-08 12:51:48 +00:00
|
|
|
|
2024-02-09 11:31:37 +00:00
|
|
|
interval: 2000
|
|
|
|
repeat: false
|
|
|
|
onTriggered: {
|
|
|
|
if (successFlow.checked) {
|
|
|
|
modal.passwordSuccessfulyChanged()
|
|
|
|
} else {
|
|
|
|
modal.close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
LogsAndControlsPanel {
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 200
|
|
|
|
SplitView.preferredWidth: 300
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
CheckBox {
|
|
|
|
id: successFlow
|
|
|
|
text: "%1 in 2 seconds".arg(successFlow.checked ? "Success" : "Error")
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// category: Popups
|
|
|
|
|
|
|
|
// https://www.figma.com/file/d0G7m8X6ELjQlFOEKQpn1g/Profile-WIP?type=design&node-id=11-111195&mode=design&t=j3guZtz78wkceVda-0
|