From ecd9e6d4b754b8549c583ef4e9fbe7741e8dce36 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Tue, 1 Aug 2023 16:08:56 -0500 Subject: [PATCH] DEV: Convert `watched-word-test` modal to component-based API (#22911) --- .../components/modal/watched-word-test.hbs | 45 +++++++++++ .../components/modal/watched-word-test.js | 79 +++++++++++++++++++ .../controllers/admin-watched-words-action.js | 8 +- .../modals/admin-watched-word-test.js | 78 ------------------ .../modal/admin-watched-word-test.hbs | 42 ---------- .../discourse/app/services/modal.js | 1 - 6 files changed, 128 insertions(+), 125 deletions(-) create mode 100644 app/assets/javascripts/admin/addon/components/modal/watched-word-test.hbs create mode 100644 app/assets/javascripts/admin/addon/components/modal/watched-word-test.js delete mode 100644 app/assets/javascripts/admin/addon/controllers/modals/admin-watched-word-test.js delete mode 100644 app/assets/javascripts/admin/addon/templates/modal/admin-watched-word-test.hbs diff --git a/app/assets/javascripts/admin/addon/components/modal/watched-word-test.hbs b/app/assets/javascripts/admin/addon/components/modal/watched-word-test.hbs new file mode 100644 index 00000000000..4c9f9d073d2 --- /dev/null +++ b/app/assets/javascripts/admin/addon/components/modal/watched-word-test.hbs @@ -0,0 +1,45 @@ + + <:body> +

{{i18n "admin.watched_words.test.description"}}

+