Start on correct tab

This commit is contained in:
ernstmul
2025-02-13 11:19:06 +01:00
parent 0b7b3d8ff5
commit 45e950202e
5 changed files with 9 additions and 5 deletions
@@ -49,6 +49,7 @@
function openPlatformWizard(type: number, platform?: Models.Platform) {
if (platform) {
console.log('platform', platform);
continuePlatform(type, platform.name, platform.key, platform.type);
} else {
addPlatform(type);
@@ -34,7 +34,10 @@
key: key,
type: type
});
wizard.start(platforms[platform], null, 1, { isPlatformCreated: true });
wizard.start(platforms[platform], null, 1, {
isPlatformCreated: true,
platform: type
});
}
const platforms = {
@@ -44,7 +44,7 @@
APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject.client.config.endpoint}"
`;
let platform: PlatformType = PlatformType.Appleios;
export let platform: PlatformType = PlatformType.Appleios;
let platforms: { [key: string]: PlatformType } = {
iOS: PlatformType.Appleios,
@@ -29,7 +29,7 @@
import { LabelCard } from '$lib/components';
let showExitModal = false;
export let isPlatformCreated = false;
let isPlatformCreated = false;
let isCreatingPlatform = false;
let connectionSuccessful = false;
const projectId = $page.params.project;
@@ -43,7 +43,7 @@
static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
`;
let platform: PlatformType = PlatformType.Flutterandroid;
export let platform: PlatformType = PlatformType.Flutterandroid;
let platforms: { [key: string]: PlatformType } = {
Android: PlatformType.Flutterandroid,
@@ -43,7 +43,7 @@
const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}";
`;
let platform: PlatformType = PlatformType.Reactnativeandroid;
export let platform: PlatformType = PlatformType.Reactnativeandroid;
let platforms: { [key: string]: PlatformType } = {
Android: PlatformType.Reactnativeandroid,