open-vault/ui/app/templates/components/key-value-header.hbs
Matthew Irish 387bb63466
reset pageFilter when the model changes (#6511)
* reset pageFilter when the model changes

* add test selectors for list and show secret pages

* add acceptance test to verify that pageFilter is closed after navigating away from the list page

* only clear on exit
2019-04-02 11:26:58 -05:00

17 lines
500 B
Handlebars

<ul>
{{yield}}
{{#each secretPath as |path index|}}
<li class="{{if (is-active-route path.path path.model isExact=true) 'is-active'}}">
<span class="sep">&#x0002f;</span>
{{#if linkToPaths}}
{{#link-to params=(array path.path path.model) data-test-secret-root-link=(if (eq index 0) true false) data-test-secret-breadcrumb=path.text}}
{{path.text}}
{{/link-to}}
{{else}}
<span>{{path.text}}</span>
{{/if}}
</li>
{{/each}}
</ul>