35d65c7c7e
Fixes #14617 Dynamic Node Metadata allows Nomad users, and their jobs, to update Node metadata through an API. Currently Node metadata is only reloaded when a Client agent is restarted. Includes new UI for editing metadata as well. --------- Co-authored-by: Phil Renaud <phil.renaud@hashicorp.com>
15 lines
649 B
Handlebars
15 lines
649 B
Handlebars
{{#each-in this.attributes as |key value|}}
|
|
{{#if (is-object value)}}
|
|
<tr data-test-attributes-section>
|
|
<td data-test-heading class="is-subheading" colspan="2">
|
|
{{#if this.prefix}}<span class="is-faded" data-test-prefix>{{this.prefix}}.</span>{{/if}}{{key}}
|
|
</td>
|
|
</tr>
|
|
<AttributesSection @prefix={{if this.prefix (concat this.prefix "." key) key}} @attributes={{value}}
|
|
@key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} />
|
|
{{else}}
|
|
<MetadataKv @prefix={{this.prefix}}
|
|
@key={{key}} @value={{value}} @editable={{@editable}} @onKVSave={{@onKVSave}} />
|
|
{{/if}}
|
|
{{/each-in}}
|