mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
6474e73b85
The profile fetching view is part of the onboarding process. This view should be displayed on existing user onboarding flow, while the profile is being fetched in the backend. It has 3 states: 1. Fetching in progress 2. Fetching completed 3. Fetching error
58 lines
1.5 KiB
QML
58 lines
1.5 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
|
|
import AppLayouts.Onboarding.views 1.0
|
|
import AppLayouts.Onboarding.stores 1.0
|
|
|
|
import Storybook 1.0
|
|
|
|
import utils 1.0
|
|
|
|
SplitView {
|
|
Logs { id: logs }
|
|
|
|
SplitView {
|
|
orientation: Qt.Vertical
|
|
SplitView.fillWidth: true
|
|
|
|
ProfileFetchingView {
|
|
SplitView.fillWidth: true
|
|
SplitView.fillHeight: true
|
|
|
|
startupStore: StartupStore {
|
|
property QtObject currentStartupState: QtObject {
|
|
property string stateType: comboBox.currentText
|
|
}
|
|
|
|
function doPrimaryAction() {
|
|
logs.logEvent("StartupStore::doPrimaryAction")
|
|
}
|
|
|
|
function doSecondaryAction() {
|
|
logs.logEvent("StartupStore::doSecondaryAction")
|
|
}
|
|
|
|
function doTertiaryAction() {
|
|
logs.logEvent("StartupStore::doTertiaryAction")
|
|
}
|
|
}
|
|
}
|
|
|
|
LogsAndControlsPanel {
|
|
id: logsAndControlsPanel
|
|
|
|
SplitView.minimumHeight: 100
|
|
SplitView.preferredHeight: 200
|
|
|
|
logsView.logText: logs.logText
|
|
}
|
|
}
|
|
|
|
ComboBox {
|
|
id: comboBox
|
|
SplitView.preferredWidth: 300
|
|
SplitView.preferredHeight: 100
|
|
model: [ Constants.startupState.profileFetching, Constants.startupState.profileFetchingCompleted, Constants.startupState.profileFetchingError, "none" ]
|
|
}
|
|
}
|