Skip to content

Commit

Permalink
Add option to disable feedback (#185)
Browse files Browse the repository at this point in the history
* add disable feedback attr

* Add page to demo disabling feedback
  • Loading branch information
recrwplay authored Jul 27, 2023
1 parent 73607ce commit 31ecc4a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions preview-src/feedback-disabled.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
= Feedback disabled
:page-disablefeedback: true

This page has the header attribute `:page-disablefeedback: true` set to disable the feedback popup.

3 changes: 3 additions & 0 deletions preview-src/ui-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ page:
- content: Examples
url: example.html
urlType: internal
- content: Feedback disabled
url: feedback-disabled.html
urlType: internal
- content: Docs roles
url: docs-roles.html
urlType: internal
Expand Down
4 changes: 3 additions & 1 deletion src/partials/article.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ If you typed the URL of this page manually, please double check that you entered
{{#if (eq page.layout 'training')}}
{{> training-help}}
{{else}}
{{> feedback}}
{{#unless page.attributes.disablefeedback}}
{{> feedback}}
{{/unless}}
{{/if}}
</article>

0 comments on commit 31ecc4a

Please sign in to comment.