Hooking up events

This commit is contained in:
Alex Tran 2023-08-12 18:04:41 -05:00
parent 9bd2934aa2
commit 3576d078cf
2 changed files with 17 additions and 2 deletions

View file

@ -39,7 +39,7 @@
<p class="text-sm font-medium">LOCATION</p>
<div class="mt-4">
<button
class="immich-text-primary border-1 flex w-full place-content-center place-items-center rounded-2xl border border-gray-300 py-2 hover:bg-gray-500/20 dark:border-gray-500"
class="immich-text-primary border-1 flex w-full place-content-center place-items-center rounded-3xl border border-gray-300 py-2 hover:bg-gray-500/20 dark:border-gray-500"
on:click={() => dispatch('select-location')}
>
<Plus size="24" />

View file

@ -279,6 +279,16 @@
handleError(error, 'Error updating album description');
}
};
const handleRulePeopleSelection = () => {
// viewMode = ViewMode.SELECT_ASSETS;
console.log('handleRuleFaceSelection');
};
const handleRuleLocationSelection = () => {
// viewMode = ViewMode.SELECT_ASSETS;
console.log('handleRuleLocationSelection');
};
</script>
<header>
@ -550,5 +560,10 @@
{/if}
{#if viewMode === ViewMode.RULE_SELECTION}
<RuleSelection on:close={() => (viewMode = ViewMode.VIEW)} {album} />
<RuleSelection
on:close={() => (viewMode = ViewMode.VIEW)}
{album}
on:select-people={() => handleRulePeopleSelection()}
on:select-location={() => handleRuleLocationSelection()}
/>
{/if}