From 67c48977db12aa571ce44fc1a318557955c61780 Mon Sep 17 00:00:00 2001 From: Iasmim Pereira <100351576+IasmimCristina@users.noreply.github.com> Date: Wed, 1 May 2024 10:18:28 -0300 Subject: [PATCH] Fix: copy to clipboard message (#20898) * fix: copy to clipboard message * chore: deletion of unused imports --- app/javascript/packs/commentDropdowns.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/javascript/packs/commentDropdowns.js b/app/javascript/packs/commentDropdowns.js index a11c13c20..870a97d07 100644 --- a/app/javascript/packs/commentDropdowns.js +++ b/app/javascript/packs/commentDropdowns.js @@ -1,4 +1,3 @@ -import { addSnackbarItem } from '../Snackbar'; import { initializeDropdown, getDropdownRepositionListener, @@ -11,7 +10,7 @@ const handleCopyPermalink = (closeDropdown) => { event.preventDefault(); const permalink = event.target.href; copyToClipboard(permalink).then(() => { - addSnackbarItem({ message: 'Copied to clipboard' }); + top.addSnackbarItem({ message: 'Copied to clipboard' }); }); closeDropdown(); };