Skip to content

Commit

Permalink
feat: load statement in delegation dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Sep 29, 2024
1 parent 75ea2b2 commit cdddb98
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/views/SpaceDelegates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const router = useRouter();
const { t } = useI18n();
const { isFollowing } = useFollowSpace(props.space.id);
const { web3Account } = useWeb3();
const { getStatement } = useStatement();
const { getStatement, loadStatements } = useStatement();
const searchInput = ref((route.query.search as string) || '');
const searchInputDebounced = refDebounced(searchInput, 300);
Expand Down Expand Up @@ -138,6 +138,13 @@ watch(matchFilter, () => {
loadDelegates(matchFilter.value);
});
watch(delegates, delegates => {
loadStatements(
props.space.id,
delegates.map(d => d.id)
);
});
onMounted(() => {
if (!hasDelegationPortal) return;
Expand Down

0 comments on commit cdddb98

Please sign in to comment.