mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
22 lines
584 B
Svelte
22 lines
584 B
Svelte
<script lang="ts">
|
|
import { startMaintenance } from '@immich/sdk';
|
|
import { Button } from '@immich/ui';
|
|
import { t } from 'svelte-i18n';
|
|
import { fade } from 'svelte/transition';
|
|
|
|
interface Props {
|
|
disabled?: boolean;
|
|
}
|
|
|
|
let { disabled = false }: Props = $props();
|
|
</script>
|
|
|
|
<div>
|
|
<div in:fade={{ duration: 500 }}>
|
|
<div class="ms-4 mt-4 flex items-end gap-4">
|
|
<Button shape="round" type="submit" {disabled} size="small" onclick={() => startMaintenance()}
|
|
>{$t('admin.maintenance_enabled_description')}</Button
|
|
>
|
|
</div>
|
|
</div>
|
|
</div>
|