mirror of https://github.com/status-im/consul.git
17 lines
310 B
Handlebars
17 lines
310 B
Handlebars
{{#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}}
|