mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
* chore(web): another missing translations * unused removed * more keys * lint fix * test fixed * dynamic translation fix * fixes * people search translation * params fixed * keep filter setting fix * lint fix * $t fixes * Update web/src/lib/i18n/en.json Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * another missing * activity translation * link sharing translations * expiration dropdown fix - didn't work localized * notification title * device logout * search results * reset to default * unsaved change * select from computer * selected * select-2 * select-3 * unmerge * pluralize, force icu message * Update web/src/lib/components/asset-viewer/asset-viewer.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * review fixes * remove user * plural fixes * ffmpeg settings * fixes * error title * plural fixes * onboarding * change password * more more * console log fix * another * api key desc * map marker * format fix * key fix * asset-utils * utils * misc --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
47 lines
1.3 KiB
Svelte
47 lines
1.3 KiB
Svelte
<script lang="ts">
|
|
import { createEventDispatcher } from 'svelte';
|
|
import ConfirmDialog from '../shared-components/dialog/confirm-dialog.svelte';
|
|
import { showDeleteModal } from '$lib/stores/preferences.store';
|
|
import Checkbox from '$lib/components/elements/checkbox.svelte';
|
|
import { t } from 'svelte-i18n';
|
|
|
|
export let size: number;
|
|
|
|
let checked = false;
|
|
|
|
const dispatch = createEventDispatcher<{
|
|
confirm: void;
|
|
cancel: void;
|
|
}>();
|
|
|
|
const handleConfirm = () => {
|
|
if (checked) {
|
|
$showDeleteModal = false;
|
|
}
|
|
dispatch('confirm');
|
|
};
|
|
</script>
|
|
|
|
<ConfirmDialog
|
|
title={$t('permanently_delete_assets_count', { values: { count: size } })}
|
|
confirmText={$t('delete')}
|
|
onConfirm={handleConfirm}
|
|
onCancel={() => dispatch('cancel')}
|
|
>
|
|
<svelte:fragment slot="prompt">
|
|
<p>
|
|
Are you sure you want to permanently delete
|
|
{#if size > 1}
|
|
these <b>{size}</b> assets? This will also remove them from their album(s).
|
|
{:else}
|
|
this asset? This will also remove it from its album(s).
|
|
{/if}
|
|
</p>
|
|
<p><b>{$t('cannot_undo_this_action')}</b></p>
|
|
|
|
<div class="pt-4 flex justify-center items-center">
|
|
<Checkbox id="confirm-deletion-input" label={$t('do_not_show_again')} bind:checked />
|
|
</div>
|
|
</svelte:fragment>
|
|
</ConfirmDialog>
|