import Ember from 'ember'; import hbs from 'htmlbars-inline-precompile'; export default Ember.Component.extend({ key: null, mode: null, path: null, actionClass: null, title: Ember.computed.alias('key.keyWithoutParent'), layout: hbs`
{{#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}}