2022-12-09 15:51:42 -05:00
|
|
|
<script lang="ts">
|
2023-04-07 18:45:00 +02:00
|
|
|
import Button from '$lib/components/elements/buttons/button.svelte';
|
2022-12-09 15:51:42 -05:00
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher();
|
|
|
|
|
|
|
|
|
|
export let showResetToDefault = true;
|
|
|
|
|
</script>
|
|
|
|
|
|
2022-12-16 14:26:12 -06:00
|
|
|
<div class="flex justify-between gap-2 mt-8">
|
2022-12-09 15:51:42 -05:00
|
|
|
<div class="left">
|
|
|
|
|
{#if showResetToDefault}
|
|
|
|
|
<button
|
2022-12-16 14:26:12 -06:00
|
|
|
on:click={() => dispatch('reset-to-default')}
|
2022-12-09 15:51:42 -05:00
|
|
|
class="text-sm dark:text-immich-dark-primary hover:dark:text-immich-dark-primary/75 text-immich-primary hover:text-immich-primary/75 font-medium bg-none"
|
|
|
|
|
>
|
|
|
|
|
Reset to default
|
|
|
|
|
</button>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="right">
|
2023-04-07 18:45:00 +02:00
|
|
|
<Button size="sm" color="gray" on:click={() => dispatch('reset')}>Reset</Button>
|
|
|
|
|
<Button size="sm" on:click={() => dispatch('save')}>Save</Button>
|
2022-12-09 15:51:42 -05:00
|
|
|
</div>
|
|
|
|
|
</div>
|