discourse/app/assets/javascripts/admin/addon/components/site-settings/string.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

19 lines
586 B
Text
Vendored

import Component, { Input, Textarea } from "@ember/component";
import TextField from "discourse/components/text-field";
export default class String extends Component {
<template>
{{#if this.setting.textarea}}
<Textarea @value={{this.value}} class="input-setting-textarea" />
{{else if this.isSecret}}
<Input
@type="password"
@value={{this.value}}
class="input-setting-string"
autocomplete="new-password"
/>
{{else}}
<TextField @value={{this.value}} @classNames="input-setting-string" />
{{/if}}
</template>
}