@@ -127,7 +132,7 @@ const {
error,
goToNextPage: fetchNextTeams,
refetch,
- list: list,
+ list: teamsList,
hasNextPage,
} = usePagedQuery(
TeamListDocument,
@@ -137,8 +142,9 @@ const {
{ cursor: undefined, take: teamsPerPage }
);
-const teamList = computed(() => {
- return list.value.map((team) => {
+// The new teams list that is used in the table
+const newTeamsList = computed(() => {
+ return teamsList.value.map((team) => {
return {
id: team.id || '',
name: team.name || '',
@@ -147,7 +153,8 @@ const teamList = computed(() => {
});
});
-const headings = ['Team ID', 'Team Name', 'Number of Members', ''];
+// Headers that are used in the table
+const headings = [t('teams.id'), t('teams.name'), t('teams.members'), ''];
// Create Team
const createTeamMutation = useMutation(CreateTeamDocument);
@@ -216,7 +223,7 @@ const deleteTeamMutation = async (id: string | null) => {
if (result.error) {
toast.error(`${t('state.delete_team_failure')}`);
} else {
- list.value = list.value.filter((team) => team.id !== id);
+ teamsList.value = teamsList.value.filter((team) => team.id !== id);
toast.success(`${t('state.delete_team_success')}`);
}
});
diff --git a/packages/hoppscotch-sh-admin/src/pages/users/index.vue b/packages/hoppscotch-sh-admin/src/pages/users/index.vue
index 832db98ab..3322e82ea 100644
--- a/packages/hoppscotch-sh-admin/src/pages/users/index.vue
+++ b/packages/hoppscotch-sh-admin/src/pages/users/index.vue
@@ -31,27 +31,16 @@
{{ t('users.load_list_error') }}
-
-
@@ -140,7 +129,7 @@
diff --git a/packages/hoppscotch-ui/src/components/smart/Table.vue b/packages/hoppscotch-ui/src/components/smart/Table.vue
index eaf6927ba..041f7f571 100644
--- a/packages/hoppscotch-ui/src/components/smart/Table.vue
+++ b/packages/hoppscotch-ui/src/components/smart/Table.vue
@@ -16,7 +16,7 @@
|
@@ -36,21 +36,29 @@
"
>
- {{ data }}
+
+ {{ data }}
+
+
{{ badgeName }}
+
- {{ data }}
-
+
+ {{ data }}
+
+
-
+
+
-
{{ data }}
+
+
+
+
+ {{ data }}
+
+ -
+
@@ -75,39 +90,34 @@