setup improvements

This commit is contained in:
Ruben Fiszel
2023-09-21 12:49:31 +02:00
parent 0ae8d097cd
commit 33deca1304
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ it being synced automatically everyday.
| SMTP_USERNAME | None | username for the smtp server to send invite emails | Server |
| SMTP_PASSWORD | None | password for the smtp server to send invite emails | Server |
| SMTP_TLS_IMPLICIT | false | https://docs.rs/mail-send/latest/mail_send/struct.SmtpClientBuilder.html#method.implicit_tlsemails | Server |
| CREATE_WORKSPACE_REQUIRE_SUPERADMIN | false | If true, only superadmin can create workspaces | Server |
| CREATE_WORKSPACE_REQUIRE_SUPERADMIN | true | If true, only superadmin can create workspaces | Server |
| GLOBAL_ERROR_HANDLER_PATH_IN_ADMINS_WORKSPACE | None | Path to a script to run when a root job fails. The script will be run in and from the admins workspace | Server |
| WHITELIST_ENVS | None | List of envs variables, separated by a ',' that are whitelisted as being safe to passthrough the workers | Worker |
| SAML_METADATA | None | SAML Metadata URL to enable SAML SSO (EE only) | Server |
@@ -14,7 +14,6 @@
import KeycloakSetting from './KeycloakSetting.svelte'
import Alert from './common/alert/Alert.svelte'
import { isCloudHosted } from '$lib/cloud'
import { createEventDispatcher } from 'svelte'
export const settings: Record<string, Setting[]> = {
Core: [
@@ -183,8 +182,6 @@
}
}
const dispatch = createEventDispatcher()
let oauths: Record<string, any> = {}
let resourceName = ''
@@ -75,6 +75,9 @@
$: adminsInstance = workspaces?.find((x) => x.id == 'admins')
$: nonAdminWorkspaces = (workspaces ?? []).filter((x) => x.id != 'admins')
$: noWorkspaces = $superadmin && nonAdminWorkspaces.length == 0
onMount(() => {
loadInvites()
loadWorkspaces()
@@ -123,7 +126,7 @@
workspace.
</p>
{/if}
{#each workspaces.filter((x) => x.id != 'admins') as workspace}
{#each nonAdminWorkspaces as workspace}
<label class="block pb-2">
<button
class="block w-full mx-auto py-1 px-2 rounded-md border
@@ -165,8 +168,10 @@
<div class="flex flex-row-reverse pt-4">
<Button
size="sm"
btnClasses={noWorkspaces ? 'animate-bounce hover:animate-none' : ''}
color={noWorkspaces ? 'dark' : 'blue'}
href="/user/create_workspace{rd ? `?rd=${encodeURIComponent(rd)}` : ''}"
variant="border"
variant={noWorkspaces ? 'contained' : 'border'}
>+&nbsp;Create a new workspace
</Button>
</div>