Files
nomad/ui/app/templates/components/attributes-section.hbs
Phil Renaud d34943435d [ui] Rework of node/job attributes/meta using PathTree (#23290)
* Rework of attributes using pathTree

* Pack meta reintroduced and made local

* attributes table test updated for new pathTree syntax

* removed flat import and extended the PathTree type signature to include prefix

* Slightly darken the is-faded text in tables
2024-06-12 14:28:17 -04:00

26 lines
558 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
{{#each this.attributes.files as |file|}}
<MetadataKv
@prefix={{file.prefix}}
@key={{file.name}}
@value={{file.variable.value}}
@editable={{@editable}}
@onKVSave={{@onKVSave}}
@copyable={{@copyable}}
/>
{{/each}}
{{#each-in this.attributes.children as |key value|}}
<AttributesSection
@attributes={{value}}
@key={{key}}
@value={{value}}
@editable={{@editable}}
@onKVSave={{@onKVSave}}
@copyable={{@copyable}}
/>
{{/each-in}}