Enable adding users
This commit is contained in:
parent
7891e99cf7
commit
36bb583602
|
@ -37,7 +37,7 @@
|
||||||
import { Constants, Utils, fetchData } from "@budibase/frontend-core"
|
import { Constants, Utils, fetchData } from "@budibase/frontend-core"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
import { OnboardingType } from "constants"
|
import { OnboardingType } from "constants"
|
||||||
import ScimBanner from "../_components/SCIMBanner.svelte"
|
import ScimInfo from "../_components/SCIMInfo.svelte"
|
||||||
import { sdk } from "@budibase/shared-core"
|
import { sdk } from "@budibase/shared-core"
|
||||||
|
|
||||||
const fetch = fetchData({
|
const fetch = fetchData({
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
let parsedInvites = []
|
let parsedInvites = []
|
||||||
|
|
||||||
$: isOwner = $auth.accountPortalAccess && $admin.cloud
|
$: isOwner = $auth.accountPortalAccess && $admin.cloud
|
||||||
$: readonly = !sdk.users.isAdmin($auth.user) || $features.isScimEnabled
|
$: readonly = !sdk.users.isAdmin($auth.user)
|
||||||
$: debouncedUpdateFetch(searchEmail)
|
$: debouncedUpdateFetch(searchEmail)
|
||||||
$: schema = {
|
$: schema = {
|
||||||
email: {
|
email: {
|
||||||
|
@ -320,8 +320,6 @@
|
||||||
Import
|
Import
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
|
||||||
<ScimBanner />
|
|
||||||
{/if}
|
{/if}
|
||||||
<div class="controls-right">
|
<div class="controls-right">
|
||||||
<Search bind:value={searchEmail} placeholder="Search" />
|
<Search bind:value={searchEmail} placeholder="Search" />
|
||||||
|
@ -346,14 +344,19 @@
|
||||||
{customRenderers}
|
{customRenderers}
|
||||||
loading={!$fetch.loaded || !groupsLoaded}
|
loading={!$fetch.loaded || !groupsLoaded}
|
||||||
/>
|
/>
|
||||||
<div class="pagination">
|
<div class="footer">
|
||||||
<Pagination
|
{#if $features.isScimEnabled && enrichedUsers?.some(g => g.scimInfo?.isSync)}
|
||||||
page={$fetch.pageNumber + 1}
|
<ScimInfo text="User synced externally" />
|
||||||
hasPrevPage={$fetch.loading ? false : $fetch.hasPrevPage}
|
{/if}
|
||||||
hasNextPage={$fetch.loading ? false : $fetch.hasNextPage}
|
<div class="pagination">
|
||||||
goToPrevPage={fetch.prevPage}
|
<Pagination
|
||||||
goToNextPage={fetch.nextPage}
|
page={$fetch.pageNumber + 1}
|
||||||
/>
|
hasPrevPage={$fetch.loading ? false : $fetch.hasPrevPage}
|
||||||
|
hasNextPage={$fetch.loading ? false : $fetch.hasNextPage}
|
||||||
|
goToPrevPage={fetch.prevPage}
|
||||||
|
goToNextPage={fetch.nextPage}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Table
|
<Table
|
||||||
schema={pendingSchema}
|
schema={pendingSchema}
|
||||||
|
@ -402,6 +405,13 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
.footer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.controls {
|
.controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in New Issue