mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix: storage template onboarding save (#19405)
* fix: storage template onboarding save * no need for async/await
This commit is contained in:
parent
4cd633dc68
commit
ef278b4fb0
@ -5,7 +5,7 @@
|
|||||||
import { featureFlags } from '$lib/stores/server-config.store';
|
import { featureFlags } from '$lib/stores/server-config.store';
|
||||||
import { user } from '$lib/stores/user.store';
|
import { user } from '$lib/stores/user.store';
|
||||||
import { getConfig, type SystemConfigDto } from '@immich/sdk';
|
import { getConfig, type SystemConfigDto } from '@immich/sdk';
|
||||||
import { onMount } from 'svelte';
|
import { onDestroy, onMount } from 'svelte';
|
||||||
|
|
||||||
let config: SystemConfigDto | undefined = $state();
|
let config: SystemConfigDto | undefined = $state();
|
||||||
let adminSettingsComponent = $state<ReturnType<typeof AdminSettings>>();
|
let adminSettingsComponent = $state<ReturnType<typeof AdminSettings>>();
|
||||||
@ -14,9 +14,7 @@
|
|||||||
config = await getConfig();
|
config = await getConfig();
|
||||||
});
|
});
|
||||||
|
|
||||||
export const save = async () => {
|
onDestroy(() => adminSettingsComponent?.handleSave({ storageTemplate: config?.storageTemplate }));
|
||||||
await adminSettingsComponent?.handleSave({ storageTemplate: config?.storageTemplate });
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user