import { alias } from '@ember/object/computed'; import Component from '@ember/component'; import hbs from 'htmlbars-inline-precompile'; export default Component.extend({ key: null, mode: null, path: null, actionClass: null, title: alias('key.keyWithoutParent'), layout: hbs`
{{#secret-link mode="list" secret=key.parentKey class="back-button" }} {{i-con glyph="chevron-left" size=11}} Secrets {{/secret-link}}
{{yield}}
{{#if (eq mode "create") }} Create a secret at {{#if showPrefix}} {{! need this to prevent a shift in the layout before we transition when saving }} {{#if key.isCreating}} {{key.initialParentKey}} {{else}} {{key.parentKey}} {{/if}} {{/if}} {{/if}} {{#if (eq mode "edit") }} Edit {{/if}} {{title}}
`, });