discourse/app/assets/javascripts/admin/addon/components/site-customization-change-field.gjs
David Taylor b29e0b6e1b
DEV: [gjs-codemod] convert admin files to gjs
Updated using `@embroider/template-tag-codemod`, plus some manual fixups.
2025-03-25 16:59:21 +00:00

17 lines
466 B
Text
Vendored

import Component, { Textarea } from "@ember/component";
import { i18n } from "discourse-i18n";
export default class SiteCustomizationChangeField extends Component {
<template>
{{#if this.field}}
<section class="field">
<b>{{i18n this.name}}</b>: ({{i18n
"character_count"
count=this.field.length
}})
<br />
<Textarea @value={{this.field}} class="plain" />
</section>
{{/if}}
</template>
}