Skip to content

Commit

Permalink
DEV: Don't use deprecated input components (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Feb 2, 2024
1 parent 478517b commit 3a6d2e4
Showing 1 changed file with 16 additions and 9 deletions.
@@ -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>
Expand All @@ -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>

0 comments on commit 3a6d2e4

Please sign in to comment.