Display banner if scim is enabled

This commit is contained in:
adrinr 2023-03-21 12:20:03 +00:00
parent 934a2f09d7
commit 1a26899d90
1 changed files with 20 additions and 1 deletions

View File

@ -81,6 +81,8 @@
let user let user
let loaded = false let loaded = false
const scimEnabled = $licensing.scimEnabled
$: isSSO = !!user?.provider $: isSSO = !!user?.provider
$: readonly = !$auth.isAdmin $: readonly = !$auth.isAdmin
$: fullName = user?.firstName ? user?.firstName + " " + user?.lastName : "" $: fullName = user?.firstName ? user?.firstName + " " + user?.lastName : ""
@ -260,7 +262,15 @@
{/if} {/if}
</div> </div>
<Layout noPadding gap="S"> <Layout noPadding gap="S">
<Heading size="S">Details</Heading> <div class="details-title">
<Heading size="S">Details</Heading>
{#if scimEnabled}
<div class="scim-banner">
<Icon name="Info" size="S" />
Users are synced from your AD
</div>
{/if}
</div>
<div class="fields"> <div class="fields">
<div class="field"> <div class="field">
<Label size="L">Email</Label> <Label size="L">Email</Label>
@ -404,4 +414,13 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
} }
.details-title {
display: flex;
justify-content: space-between;
align-items: center;
}
.scim-banner {
display: flex;
gap: var(--spacing-s);
}
</style> </style>