This commit is contained in:
Christian Beutel
2024-06-15 18:13:46 +02:00
parent 48c192376c
commit 369e63972c
27 changed files with 1321 additions and 41 deletions

View File

@@ -5,6 +5,7 @@
export let src: string;
export let isThumbnail: boolean = false;
export let showThumbnailControls: boolean = true;
export let showExifControls: boolean = false;
const dispatch = createEventDispatcher();
@@ -12,6 +13,10 @@
dispatch("thumbnail", src);
}
function handleExifClick() {
dispatch("exif", src);
}
function handleDeleteClick() {
dispatch("delete", src);
}
@@ -38,7 +43,15 @@
><i class="fa fa-file-image text-primary"></i></button
>
{/if}
{#if showExifControls}
<button
type="button"
class="tooltip"
data-title={$_("get-position-from-exif")}
on:click={handleExifClick}
><i class="fa fa-magnifying-glass-location text-primary"></i></button
>
{/if}
<button
class="tooltip"
data-title={$_("delete")}