maybe when the ripple is called?

This commit is contained in:
nelle 2024-07-14 06:53:03 -06:00
parent 9a2dc894c1
commit 73dcff2793
2 changed files with 2 additions and 1 deletions

View file

@ -67,6 +67,7 @@ function star(ev?: MouseEvent): void {
const x = rect.left + el.offsetWidth / 2; const x = rect.left + el.offsetWidth / 2;
const y = rect.top + el.offsetHeight / 2; const y = rect.top + el.offsetHeight / 2;
os.popup(Ripple, { x, y }, {}, "end"); os.popup(Ripple, { x, y }, {}, "end");
sound.play("reaction");
} }
} }
</script> </script>

View file

@ -62,7 +62,6 @@ const buttonRef = ref<HTMLElement>();
function toggleStar(ev?: MouseEvent): void { function toggleStar(ev?: MouseEvent): void {
pleaseLogin(); pleaseLogin();
sound.play("reaction");
if (!props.reacted) { if (!props.reacted) {
os.api("notes/reactions/create", { os.api("notes/reactions/create", {
noteId: props.note.id, noteId: props.note.id,
@ -76,6 +75,7 @@ function toggleStar(ev?: MouseEvent): void {
const x = rect.left + el.offsetWidth / 2; const x = rect.left + el.offsetWidth / 2;
const y = rect.top + el.offsetHeight / 2; const y = rect.top + el.offsetHeight / 2;
os.popup(Ripple, { x, y }, {}, "end"); os.popup(Ripple, { x, y }, {}, "end");
sound.play("reaction");
} }
} else { } else {
os.api("notes/reactions/delete", { os.api("notes/reactions/delete", {