DEV: Don't use deprecated input components (#279)
This commit is contained in:
parent
478517b328
commit
3a6d2e46a1
|
@ -1,13 +1,13 @@
|
|||
<h3>{{i18n "solved.title"}}</h3>
|
||||
|
||||
{{#unless siteSettings.allow_solved_on_all_topics}}
|
||||
{{#unless this.siteSettings.allow_solved_on_all_topics}}
|
||||
<section class="field">
|
||||
<div class="enable-accepted-answer">
|
||||
<label class="checkbox-label">
|
||||
<Input
|
||||
@type="checkbox"
|
||||
@checked={{readonly category.enable_accepted_answers}}
|
||||
<input
|
||||
{{on "change" (action "onChangeSetting" value="target.checked")}}
|
||||
checked={{this.category.enable_accepted_answers}}
|
||||
type="checkbox"
|
||||
/>
|
||||
{{i18n "solved.allow_accepted_answers"}}
|
||||
</label>
|
||||
|
@ -19,10 +19,17 @@
|
|||
<label for="auto-close-solved-topics">
|
||||
{{i18n "solved.solved_topics_auto_close_hours"}}
|
||||
</label>
|
||||
<NumberField
|
||||
@number={{this.category.custom_fields.solved_topics_auto_close_hours}}
|
||||
@id="auto-close-solved-topics"
|
||||
@type="number"
|
||||
@min="0"
|
||||
<input
|
||||
{{on
|
||||
"input"
|
||||
(action
|
||||
(mut this.category.custom_fields.solved_topics_auto_close_hours)
|
||||
value="target.value"
|
||||
)
|
||||
}}
|
||||
value={{this.category.custom_fields.solved_topics_auto_close_hours}}
|
||||
type="number"
|
||||
min="0"
|
||||
id="auto-close-solved-topics"
|
||||
/>
|
||||
</section>
|
Loading…
Reference in New Issue