{{#if create }} {{title 'New Key/Value'}} {{else}} {{title 'Edit Key/Value'}} {{/if}} {{#app-view class="kv edit" loading=isLoading}} {{#block-slot name='notification' as |status type|}} {{partial 'dc/kv/notifications'}} {{/block-slot}} {{#block-slot name='breadcrumbs'}}
  1. Key / Values
  2. {{#if (not-eq parent.Key '/')}} {{#each (slice 0 -1 (split parent.Key '/')) as |breadcrumb index|}}
  3. {{breadcrumb}}
  4. {{/each}} {{/if}}
{{/block-slot}} {{#block-slot name='header'}}

{{#if item.Key}} {{left-trim item.Key parent.Key}} {{else}} New Key / Value {{/if}}

{{/block-slot}} {{#block-slot name='content'}} {{#if session}}

Warning. This KV has a lock session. You can edit KV's with lock sessions, but we recommend doing so with care, or not doing so at all. It may negatively impact the active node it's associated with. See below for more details on the Lock Session and see our documentation for more information.

{{/if}} {{partial 'dc/kv/form'}} {{#if session}}

Lock Session

Name
{{session.Name}}
Agent
{{session.Node}}
ID
{{session.ID}}
Behavior
{{session.Behavior}}
{{#if session.Delay }}
Delay
{{session.LockDelay}}
{{/if}} {{#if session.TTL }}
TTL
{{session.TTL}}
{{/if}} {{#if (gt session.Checks.length 0)}}
Health Checks
{{ join ', ' session.Checks}}
{{/if}}
{{#confirmation-dialog message='Are you sure you want to invalidate this session?'}} {{#block-slot name='action' as |confirm|}} {{/block-slot}} {{#block-slot name='dialog' as |execute cancel message|}}

{{message}}

{{/block-slot}} {{/confirmation-dialog}}
{{/if}} {{/block-slot}} {{/app-view}}