discourse/app/assets/javascripts/admin/addon/components/theme-settings-editor.hbs
marstall 80f5018924
FEATURE: JSON editor for theme settings (#21647)
provide the ability to edit theme settings in the json editor, and also copy them as a text file so they can be pasted into another instance.

Reference: /t/65023
2023-07-27 13:48:59 -04:00

23 lines
544 B
Handlebars

<div class="settings-editor">
<div>
<AceEditor @mode="html" @content={{this.editedContent}} />
{{#each this.errors as |error|}}
<div class="validation-error">
{{d-icon "times"}}
<b>{{error.setting}}</b>:
{{error.errorMessage}}
</div>
{{/each}}
</div>
<div class="buttons">
<DButton
@action={{this.save}}
id="save"
class="btn-primary save"
@disabled={{this.saveButtonDisabled}}
@translatedLabel={{i18n "admin.customize.theme.save"}}
/>
</div>
</div>