Skip to content

A platform for community discussion. Free, open, simple.

DEV: use native input fields in solved components (#37947)

David Battersbyd7a28cf29978
diff --git a/plugins/discourse-solved/assets/javascripts/discourse/components/modal/move-solution-confirmation.gjs b/plugins/discourse-solved/assets/javascripts/discourse/components/modal/move-solution-confirmation.gjs
index 80776c942c3..afbef934a3e 100644
--- a/plugins/discourse-solved/assets/javascripts/discourse/components/modal/move-solution-confirmation.gjs
+++ b/plugins/discourse-solved/assets/javascripts/discourse/components/modal/move-solution-confirmation.gjs
@@ -1,6 +1,5 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
-import { Input } from "@ember/component";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import DButton from "discourse/components/d-button";
@@ -44,9 +43,9 @@ export default class MoveSolutionConfirmationModal extends Component {
<p>{{i18n "solved.confirm_move_solution" [email protected]}}</p>
<div class="control-group">
<label class="checkbox-label move-solution-dont-show-again">
- <Input
- @type="checkbox"
- @checked={{this.dontShowAgain}}
+ <input
+ type="checkbox"
+ checked={{this.dontShowAgain}}
{{on "change" this.toggleDontShowAgain}}
/>
{{i18n "solved.dont_show_again"}}
diff --git a/plugins/discourse-solved/assets/javascripts/discourse/components/modal/solved-removal-confirmation.gjs b/plugins/discourse-solved/assets/javascripts/discourse/components/modal/solved-removal-confirmation.gjs
index 8fd700d5104..88360fdd211 100644
--- a/plugins/discourse-solved/assets/javascripts/discourse/components/modal/solved-removal-confirmation.gjs
+++ b/plugins/discourse-solved/assets/javascripts/discourse/components/modal/solved-removal-confirmation.gjs
@@ -1,6 +1,5 @@
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
-import { Input } from "@ember/component";
import { on } from "@ember/modifier";
import { action } from "@ember/object";
import DButton from "discourse/components/d-button";
@@ -38,9 +37,9 @@ export default class SolvedRemovalConfirmationModal extends Component {
<p>{{i18n "solved.confirm_solved_removal"}}</p>
<div class="control-group">
<label class="checkbox-label solved-removal-dont-show-again">
- <Input
- @type="checkbox"
- @checked={{this.dontShowAgain}}
+ <input
+ type="checkbox"
+ checked={{this.dontShowAgain}}
{{on "change" this.toggleDontShowAgain}}
/>
{{i18n "solved.dont_show_again"}}