diff --git a/src/components/ChainSummary.vue b/src/components/ChainSummary.vue index 0e481a55..19d0dd67 100644 --- a/src/components/ChainSummary.vue +++ b/src/components/ChainSummary.vue @@ -13,6 +13,13 @@ const props = defineProps({ const dashboardStore = useDashboard() const conf = computed(() => dashboardStore.chains[props.name] || {}) +const addFavor = (e: Event) => { + e.stopPropagation(); + e.preventDefault(); + dashboardStore.favoriteMap[props.name] = !dashboardStore?.favoriteMap?.[props.name]; + window.localStorage.setItem('favoriteMap', JSON.stringify(dashboardStore.favoriteMap)) +} +