-
Target
-
-
-
Namespace
+{#snippet target()}
+
+ {translate('nexus.target')}
+
+
{translate('namespaces.namespace')}
+
{endpoint.spec?.target?.worker?.namespace || ''}
-
-
- Task Queue
+
+
+
+
+
{translate('common.task-queue')}
+
{endpoint.spec?.target?.worker?.taskQueue || ''}
-
- {@render taskQueueStatus?.()}
+
-
-
-
Description
+
+ {@render taskQueueStatus?.()}
+
+{/snippet}
+
+{#snippet description()}
+
+ {translate('common.description')}
-
- {#if endpoint.spec?.allowedCallerNamespaces}
-
Allowed Caller Namespaces
+
+{/snippet}
+
+{#snippet allowedCallerNamespacesTable()}
+
+
+
{translate('nexus.allowed-caller-namespaces')}
+ {allowedCallerNamespaces.length}
+
- {#each endpoint.spec?.allowedCallerNamespaces as namespace (namespace)}
-
{namespace}
- {/each}
+
translate('common.go-to-page', { page })}
+ variant="primary"
+ items={allowedCallerNamespaces}
+ let:visibleItems
+ maxHeight="24rem"
+ >
+ {translate('nexus.allowed-caller-namespaces')}
+
+ {translate('common.name')} |
+
+ {#each visibleItems as namespace (namespace)}
+
+
+ {namespace}
+ |
+
+ {:else}
+
+ {/each}
+
- {/if}
+
+{/snippet}
+
+{#snippet editButton(className: ClassNameValue = undefined)}
+
+{/snippet}
+
+
+
+
+
+ {endpoint.spec?.name || ''}
+
+ {@render editButton('max-sm:hidden')}
+
+
UUID: {endpoint.id}
+ {@render editButton('sm:hidden mt-6 w-full')}
+
+
+
+ {@render target()}
+ {#if allowedCallerNamespaces}
+ {@render allowedCallerNamespacesTable()}
+ {/if}
+
+ {@render description()}
+
diff --git a/src/lib/pages/nexus-form.svelte b/src/lib/pages/nexus-form.svelte
index 3427af498b..8dcedbd079 100644
--- a/src/lib/pages/nexus-form.svelte
+++ b/src/lib/pages/nexus-form.svelte
@@ -54,7 +54,7 @@
$endpointForm = {
spec: {
name,
- descriptionString,
+ descriptionString: descriptionString.trim() || undefined,
target: {
worker: {
namespace: target,
@@ -137,13 +137,14 @@
id="caller-namespace-filter-menu"
multiselect
displayChips={false}
+ allowCustomValue
bind:value={allowedCallerNamespaces}
options={callerNamespaces}
label={translate('nexus.allowed-caller-namespaces')}
leadingIcon="search"
noResultsText={translate('common.no-results')}
valid={!!allowedCallerNamespaces.length}
- error="Please select at least one Namespace."
+ error={translate('nexus.allowed-caller-namespaces-error')}
placeholder={translate('nexus.select-namespaces')}
optionValueKey="value"
optionLabelKey="label"