Ghost/ghost/admin/app/components/gh-feature-flag.hbs
Elena Baidakova ca46308abe
Added logic for showing feedback form in Labs (#16831)
refs TryGhost/Team#3247
- The feedback form UI is hidden by default
- Enabling “Lexical editor” doesn’t show the feedback form
- Disabling “Lexical editor” shows the feedback form below this lab item
and user can send the feedback
- Refreshing the page or navigating to some other page and then back to
Labs → the form is hidden again
2023-05-19 13:15:25 +04:00

13 lines
315 B
Handlebars

<input
type="checkbox"
data-test-toggle={{this.testKey}}
checked={{this.value}}
disabled={{this.disabled}}
id={{this.for}}
name={{this.name}}
onclick={{action (mut this.value) value="target.checked"}}
onchange={{@onChange}}
>
<span class="input-toggle-component"></span>
{{{yield}}}