From 12b869d7d14270c0ad8ab24595b824163bb788e5 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 29 Aug 2023 10:57:32 +0200 Subject: [PATCH] Display required license --- .../buttons/ManageAccessButton.svelte | 2 + .../grid/GridManageAccessButton.svelte | 16 ++++-- .../DataTable/modals/ManageAccessModal.svelte | 53 +++++++++++++------ 3 files changed, 51 insertions(+), 20 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte index bc8e0c5318..f6a74784fa 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte @@ -5,6 +5,7 @@ export let resourceId export let disabled = false + export let requiresLicence let modal let resourcePermissions @@ -21,6 +22,7 @@ diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte index a7f18464ef..d6a2c5dee2 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte @@ -1,5 +1,5 @@ - + diff --git a/packages/builder/src/components/backend/DataTable/modals/ManageAccessModal.svelte b/packages/builder/src/components/backend/DataTable/modals/ManageAccessModal.svelte index aa6dbc93e0..678fb3b1c5 100644 --- a/packages/builder/src/components/backend/DataTable/modals/ManageAccessModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/ManageAccessModal.svelte @@ -7,11 +7,14 @@ notifications, Body, ModalContent, + Tags, + Tag, } from "@budibase/bbui" import { capitalise } from "helpers" export let resourceId export let permissions + export let requiresLicence async function changePermission(level, role) { try { @@ -30,22 +33,36 @@ } - - Specify the minimum access level role for this data. -
- - - {#each Object.keys(permissions) as level} - - +