Ghost/ghost/admin/app/components/announcement-settings/visibility.hbs
Elena Baidakova ecb42a3680
Wired announcement api to admin ui (#16678)
refs TryGhost/Team#3052


<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 7173288</samp>

This pull request adds new components and settings for the announcement
bar feature, which allows the user to customize the content, background,
and visibility of a banner that appears on the site.
2023-04-19 19:45:34 +04:00

18 lines
800 B
Handlebars

<div class="gh-stack-item {{if (eq @index 0) "gh-setting-first" "gh-setting"}}">
<div class="flex-grow-1">
<label class="gh-setting-title gh-theme-setting-title" for="announcement-visibility">
Announcement visibility
</label>
<span class="gh-select">
<select class="ember-select" name="announcement-visibility" id="announcement-visibility" {{on "change" this.setVisibility}}>
{{#each this.options as |settingOption|}}
<option value={{settingOption.value}} selected={{eq settingOption.value this.background}}>
{{settingOption.label}}
</option>
{{/each}}
</select>
{{svg-jar "arrow-down-small"}}
</span>
</div>
</div>