1
0
Fork 0
mirror of synced 2024-08-02 11:51:34 +12:00

Replace license with feature

This commit is contained in:
adrinr 2023-03-28 11:11:16 +01:00
parent b50e4df28c
commit 14347096e4
3 changed files with 5 additions and 5 deletions

View file

@ -13,7 +13,7 @@
Search,
notifications,
} from "@budibase/bbui"
import { groups, auth, licensing, admin } from "stores/portal"
import { groups, auth, licensing, admin, features } from "stores/portal"
import { onMount } from "svelte"
import CreateEditGroupModal from "./_components/CreateEditGroupModal.svelte"
import { cloneDeep } from "lodash/fp"
@ -107,7 +107,7 @@
<div class="controls">
<ButtonGroup>
{#if $licensing.groupsEnabled}
{#if !$licensing.scimEnabled}
{#if !$features.isScimEnabled}
<!--Show the group create button-->
<Button disabled={readonly} cta on:click={showCreateGroupModal}>
Add group

View file

@ -19,7 +19,7 @@
Table,
} from "@budibase/bbui"
import { onMount, setContext } from "svelte"
import { users, auth, groups, apps, licensing } from "stores/portal"
import { users, auth, groups, apps, licensing, features } from "stores/portal"
import { roles } from "stores/backend"
import ForceResetPasswordModal from "./_components/ForceResetPasswordModal.svelte"
import UserGroupPicker from "components/settings/UserGroupPicker.svelte"
@ -86,7 +86,7 @@
let user
let loaded = false
const scimEnabled = $licensing.scimEnabled
const scimEnabled = $features.isScimEnabled
$: isSSO = !!user?.provider
$: readonly = !$auth.isAdmin || scimEnabled

View file

@ -238,7 +238,7 @@
</Layout>
<Divider />
<div class="controls">
{#if !$features.isScimEnabled}
{#if !readonly}
<ButtonGroup>
<Button disabled={readonly} on:click={createUserModal.show} cta>
Add users