consul/ui/packages/consul-ui/app/components/disclosure/details/index.hbs

22 lines
386 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
{{#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}}