2017-03-24 13:10:32 +00:00
|
|
|
{{#unless editMode}}
|
2017-09-14 12:54:57 +01:00
|
|
|
<div class="folder-heading {{if permissions.spaceOwner 'cursor-pointer'}}" onclick={{if permissions.spaceOwner (action 'toggleEdit')}}>
|
2017-03-24 13:10:32 +00:00
|
|
|
<h1 class="folder-title">{{folder.name}}</h1>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<form {{action "onSave" on="submit"}}>
|
|
|
|
<div class="edit-folder-heading">
|
|
|
|
<div class="input-inline input-transparent edit-folder-title">
|
|
|
|
{{focus-input id="folder-name" type="text" value=folderName class=(if hasNameError 'error-inline') placeholder="Name" autocomplete="off"}}
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<button type="submit" class="round-button-mono" {{action 'onSave'}}>
|
|
|
|
<i class="material-icons color-green">check</i>
|
|
|
|
</button>
|
|
|
|
<div class="round-button-mono" {{action 'onCancel'}}>
|
|
|
|
<i class="material-icons color-gray">close</i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{/unless}}
|