mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 01:53:41 +08:00
20 lines
635 B
Text
Vendored
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>
|
|
}
|