Skip to content

Commit

Permalink
feat(ui): add missing toast on copy to clipboard card url
Browse files Browse the repository at this point in the history
  • Loading branch information
felipetodev committed Sep 15, 2024
1 parent 325a08a commit 0d2f5c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ export function addClipboardEvent(el: NodeListOf<HTMLElement>) {
const target = e.target as HTMLButtonElement;
const url = target.getAttribute("data-url");
navigator.clipboard.writeText(url!);
window.toast({
title: "Link copied to clipboard!",
location: "bottom-center",
dismissible: true,
type: "success",
icon: true,
});
});
});
}
Expand Down

0 comments on commit 0d2f5c0

Please sign in to comment.