refactor(web): added types and some small changes (#1722)

This commit is contained in:
Michel Heusschen 2023-02-10 23:17:39 +01:00 committed by GitHub
parent c90dcde7cc
commit bd71e087d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 49 deletions

View file

@ -330,12 +330,8 @@
}
};
const showAlbumOptionsMenu = (event: CustomEvent) => {
contextMenuPosition = {
x: event.detail.mouseEvent.x,
y: event.detail.mouseEvent.y
};
const showAlbumOptionsMenu = ({ x, y }: MouseEvent) => {
contextMenuPosition = { x, y };
isShowAlbumOptions = !isShowAlbumOptions;
};
@ -467,7 +463,7 @@
{#if !isPublicShared}
<CircleIconButton
title="Album options"
on:click={(event) => showAlbumOptionsMenu(event)}
on:click={showAlbumOptionsMenu}
logo={DotsVertical}
/>
{/if}