Compare commits
1 Commits
ios-qr-cod
...
onboarding
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e6e959b19 |
@@ -478,6 +478,7 @@ export default class HomeView extends Vue {
|
|||||||
selectedImageData: Blob | null = null;
|
selectedImageData: Blob | null = null;
|
||||||
isImageViewerOpen = false;
|
isImageViewerOpen = false;
|
||||||
imageCache: Map<string, Blob | null> = new Map();
|
imageCache: Map<string, Blob | null> = new Map();
|
||||||
|
needsOnboarding = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the component on mount
|
* Initializes the component on mount
|
||||||
@@ -603,12 +604,8 @@ export default class HomeView extends Vue {
|
|||||||
this.showShortcutBvc = !!settings.showShortcutBvc;
|
this.showShortcutBvc = !!settings.showShortcutBvc;
|
||||||
this.isAnyFeedFilterOn = checkIsAnyFeedFilterOn(settings);
|
this.isAnyFeedFilterOn = checkIsAnyFeedFilterOn(settings);
|
||||||
|
|
||||||
// Check onboarding status
|
// Check onboarding status - will be handled in checkOnboarding()
|
||||||
if (!settings.finishedOnboarding) {
|
this.needsOnboarding = !settings.finishedOnboarding;
|
||||||
(this.$refs.onboardingDialog as OnboardingDialog).open(
|
|
||||||
OnboardPage.Home,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check registration status if needed
|
// Check registration status if needed
|
||||||
if (!this.isRegistered && this.activeDid) {
|
if (!this.isRegistered && this.activeDid) {
|
||||||
@@ -841,11 +838,16 @@ export default class HomeView extends Vue {
|
|||||||
* Called by mounted()
|
* Called by mounted()
|
||||||
*/
|
*/
|
||||||
private async checkOnboarding() {
|
private async checkOnboarding() {
|
||||||
let settings = await databaseUtil.retrieveSettingsForActiveAccount();
|
// Only check if we haven't already determined onboarding is needed
|
||||||
if (USE_DEXIE_DB) {
|
if (!this.needsOnboarding) {
|
||||||
settings = await retrieveSettingsForActiveAccount();
|
let settings = await databaseUtil.retrieveSettingsForActiveAccount();
|
||||||
|
if (USE_DEXIE_DB) {
|
||||||
|
settings = await retrieveSettingsForActiveAccount();
|
||||||
|
}
|
||||||
|
this.needsOnboarding = !settings.finishedOnboarding;
|
||||||
}
|
}
|
||||||
if (!settings.finishedOnboarding) {
|
|
||||||
|
if (this.needsOnboarding) {
|
||||||
(this.$refs.onboardingDialog as OnboardingDialog).open(OnboardPage.Home);
|
(this.$refs.onboardingDialog as OnboardingDialog).open(OnboardPage.Home);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user