revert: wizard notifications

This commit is contained in:
Torsten Dittmann committed 2022-11-11 11:45:37 +01:00
1 parent 99819a3ca0
commit 9ac458a689
4 files changed
-20

No files matched your search

@@ -5,7 +5,6 @@
import { createPlatform } from './wizard/store';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
import { addNotification } from '$lib/stores/notifications';
import type { WizardStepsType } from '$lib/layout/wizard.svelte';
import Step1 from './wizard/android/step1.svelte';
import Step2 from './wizard/android/step2.svelte';
@@ -17,10 +16,6 @@
invalidate(Dependencies.PROJECT);
}
invalidate(Dependencies.PLATFORMS);
addNotification({
type: 'success',
message: `${$createPlatform.name} platform has been created.`
});
createPlatform.reset();
wizard.hide();
}
@@ -10,17 +10,12 @@
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
import { addNotification } from '$lib/stores/notifications';
async function onFinish() {
if ($onboarding) {
invalidate(Dependencies.PROJECT);
}
invalidate(Dependencies.PLATFORMS);
addNotification({
type: 'success',
message: `${$createPlatform.name} platform has been created.`
});
createPlatform.reset();
wizard.hide();
}
@@ -10,17 +10,12 @@
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
import { addNotification } from '$lib/stores/notifications';
async function onFinish() {
if ($onboarding) {
invalidate(Dependencies.PROJECT);
}
invalidate(Dependencies.PLATFORMS);
addNotification({
type: 'success',
message: `${$createPlatform.name} platform has been created.`
});
createPlatform.reset();
wizard.hide();
}
@@ -10,17 +10,12 @@
import Step4 from './wizard/step4.svelte';
import { Dependencies } from '$lib/constants';
import { onboarding } from '../../store';
import { addNotification } from '$lib/stores/notifications';
async function onFinish() {
if ($onboarding) {
invalidate(Dependencies.PROJECT);
}
invalidate(Dependencies.PLATFORMS);
addNotification({
type: 'success',
message: `${$createPlatform.name} platform has been created.`
});
createPlatform.reset();
wizard.hide();
}