- {{ getUsername(delegate.id, profiles[delegate.id]) }}
+
+
+
+
+
+
+ {{ getUsername(delegate.id, profiles[delegate.id]) }}
+
+
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
diff --git a/src/views/SpaceDelegates.vue b/src/views/SpaceDelegates.vue
index 29b7c1c580ec..8cfb0b8c8d60 100644
--- a/src/views/SpaceDelegates.vue
+++ b/src/views/SpaceDelegates.vue
@@ -23,14 +23,14 @@ const {
hasDelegatesLoadFailed,
hasDelegationPortal
} = useDelegates(props.space);
-const { profiles } = useProfiles();
+const { profiles, loadProfiles } = useProfiles();
const { modalAccountOpen } = useModal();
const route = useRoute();
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);
@@ -138,6 +138,12 @@ watch(matchFilter, () => {
loadDelegates(matchFilter.value);
});
+watch(delegates, delegates => {
+ const ids = delegates.map(d => d.id);
+ loadStatements(props.space.id, ids);
+ loadProfiles(ids);
+});
+
onMounted(() => {
if (!hasDelegationPortal) return;