DEV: Don't use deprecated input components (#279)

This commit is contained in:
Jarek Radosz 2024-02-02 15:13:55 +01:00 committed by GitHub
parent 478517b328
commit 3a6d2e46a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 9 deletions

View File

@ -1,13 +1,13 @@
<h3>{{i18n "solved.title"}}</h3> <h3>{{i18n "solved.title"}}</h3>
{{#unless siteSettings.allow_solved_on_all_topics}} {{#unless this.siteSettings.allow_solved_on_all_topics}}
<section class="field"> <section class="field">
<div class="enable-accepted-answer"> <div class="enable-accepted-answer">
<label class="checkbox-label"> <label class="checkbox-label">
<Input <input
@type="checkbox"
@checked={{readonly category.enable_accepted_answers}}
{{on "change" (action "onChangeSetting" value="target.checked")}} {{on "change" (action "onChangeSetting" value="target.checked")}}
checked={{this.category.enable_accepted_answers}}
type="checkbox"
/> />
{{i18n "solved.allow_accepted_answers"}} {{i18n "solved.allow_accepted_answers"}}
</label> </label>
@ -19,10 +19,17 @@
<label for="auto-close-solved-topics"> <label for="auto-close-solved-topics">
{{i18n "solved.solved_topics_auto_close_hours"}} {{i18n "solved.solved_topics_auto_close_hours"}}
</label> </label>
<NumberField <input
@number={{this.category.custom_fields.solved_topics_auto_close_hours}} {{on
@id="auto-close-solved-topics" "input"
@type="number" (action
@min="0" (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> </section>