Replace license with feature
This commit is contained in:
parent
b50e4df28c
commit
14347096e4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue