Fix group app number count in group list table

This commit is contained in:
Andrew Kingston 2022-09-23 14:43:41 +01:00
parent a1b1798e13
commit ade8857024
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
import { onMount } from "svelte" import { onMount } from "svelte"
import CreateEditGroupModal from "./_components/CreateEditGroupModal.svelte" import CreateEditGroupModal from "./_components/CreateEditGroupModal.svelte"
import { cloneDeep } from "lodash/fp" import { cloneDeep } from "lodash/fp"
import AppsTableRenderer from "../users/_components/AppsTableRenderer.svelte" import GroupAppsTableRenderer from "./_components/GroupAppsTableRenderer.svelte"
import UsersTableRenderer from "./_components/UsersTableRenderer.svelte" import UsersTableRenderer from "./_components/UsersTableRenderer.svelte"
import GroupNameTableRenderer from "./_components/GroupNameTableRenderer.svelte" import GroupNameTableRenderer from "./_components/GroupNameTableRenderer.svelte"
import { goto } from "@roxi/routify" import { goto } from "@roxi/routify"
@ -37,13 +37,13 @@
let customRenderers = [ let customRenderers = [
{ column: "name", component: GroupNameTableRenderer }, { column: "name", component: GroupNameTableRenderer },
{ column: "users", component: UsersTableRenderer }, { column: "users", component: UsersTableRenderer },
{ column: "apps", component: AppsTableRenderer }, { column: "roles", component: GroupAppsTableRenderer },
] ]
$: schema = { $: schema = {
name: {}, name: {},
users: { sortable: false }, users: { sortable: false },
apps: { sortable: false }, roles: { sortable: false },
} }
$: filteredGroups = filterGroups($groups, searchString) $: filteredGroups = filterGroups($groups, searchString)