Browse Source
Merge pull request #7246 from Budibase/fix/filter-app-by-user-group
Fix/filter app by user group
pull/7303/head
NEOLPAR
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
packages/builder/src/pages/builder/portal/apps/_components/AcessFilter.svelte
-
packages/builder/src/pages/builder/portal/apps/index.svelte
|
|
|
@ -22,7 +22,7 @@ |
|
|
|
if (!detail) return |
|
|
|
|
|
|
|
const groupSelected = $groups.find(x => x._id === detail) |
|
|
|
const appIds = groupSelected?.apps.map(x => x.appId) || null |
|
|
|
const appIds = groupSelected?.apps || null |
|
|
|
dispatch("change", appIds) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ |
|
|
|
import { store, automationStore } from "builderStore" |
|
|
|
import { API } from "api" |
|
|
|
import { onMount } from "svelte" |
|
|
|
import { apps, auth, admin, templates, groups } from "stores/portal" |
|
|
|
import { apps, auth, admin, templates } from "stores/portal" |
|
|
|
import download from "downloadjs" |
|
|
|
import { goto } from "@roxi/routify" |
|
|
|
import AppRow from "components/start/AppRow.svelte" |
|
|
|
@ -355,7 +355,7 @@ |
|
|
|
</Button> |
|
|
|
{/if} |
|
|
|
<div class="filter"> |
|
|
|
{#if $auth.groupsEnabled && $groups.length} |
|
|
|
{#if $auth.groupsEnabled} |
|
|
|
<AccessFilter on:change={accessFilterAction} /> |
|
|
|
{/if} |
|
|
|
<Select |
|
|
|
|