discourse/app/assets/javascripts/admin/addon/components/site-settings/string.gjs
Jarek Radosz ce6368ca98
DEV: Enable ember/no-classic-components (#33978)
…and apply lint-to-the-future
2025-07-30 14:54:24 +02:00

20 lines
635 B
Text
Vendored

/* eslint-disable ember/no-classic-components */
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>
}