From cc5844fa95694898f97a2a50ee2cadf0b5de14a0 Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Sat, 1 Aug 2020 18:09:14 +0800 Subject: [PATCH 1/2] Scope copied toast --- src/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.html b/src/index.html index f98cc97..ebf5fc9 100644 --- a/src/index.html +++ b/src/index.html @@ -243,13 +243,13 @@ `.svg`" x-bind:download="downloadType === 'download-svg' && item.icon_name" class="flex flex-col relative items-center group justify-center text-gray-700 rounded shadow hover:shadow-xl bg-white cursor-pointer transition duration-150 ease-in-out h-32 md:h-40" - @click="handleClick(item, downloadType, $event), $dispatch('show:toast'), setTimeout(() => $dispatch('show:toast'), 1000)" + @click="handleClick(item, downloadType, $event), $dispatch('show:toast', item.icon_name), setTimeout(() => $dispatch('show:toast', false), 1000)" >