mirror of https://github.com/hashicorp/consul
22 lines
385 B
Handlebars
22 lines
385 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
{{#let
|
|
(unique-id)
|
|
as |id|}}
|
|
{{#if (or
|
|
(and (eq @auto undefined) @disclosure.expanded)
|
|
(and (not-eq @auto undefined) (eq @auto false))
|
|
)
|
|
}}
|
|
{{yield (hash
|
|
id=id
|
|
expanded=@disclosure.expanded
|
|
)}}
|
|
{{/if}}
|
|
{{did-insert (fn @disclosure.add id)}}
|
|
{{will-destroy (fn @disclosure.remove id)}}
|
|
{{/let}}
|