Skip to content

Commit

Permalink
feat(cf-navigation): add disabled attribute (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
czosel authored May 15, 2019
1 parent 5d40c13 commit 926b9de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions addon/components/cf-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ export default Component.extend(ComponentQueryManager, {
*/
subSection: null,

/**
* Renders the forms disabled.
* @argument {Boolean} disabled
*/
disabled: false,

_currentDocumentId: null,

async didReceiveAttrs() {
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/cf-navigation.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</div>

<div class="uk-width-1-1 uk-width-2-3@m">
{{cf-form document=displayedDocument context=context}}
{{cf-form document=displayedDocument context=context disabled=disabled}}
</div>
{{/if}}
</div>

0 comments on commit 926b9de

Please sign in to comment.