From 921416a741d1cd0076e8ed5c48e64142faa7da63 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 19 Nov 2024 23:19:51 +0100 Subject: [PATCH] DEV: converts activation-edit modal to gjs (#29827) * DEV: converts activation-edit modal to gjs * Update app/assets/javascripts/discourse/app/components/modal/activation-edit.gjs --------- Co-authored-by: Jarek Radosz --- ...activation-edit.js => activation-edit.gjs} | 28 +++++++++++++++++++ .../app/components/modal/activation-edit.hbs | 21 -------------- 2 files changed, 28 insertions(+), 21 deletions(-) rename app/assets/javascripts/discourse/app/components/modal/{activation-edit.js => activation-edit.gjs} (55%) delete mode 100644 app/assets/javascripts/discourse/app/components/modal/activation-edit.hbs diff --git a/app/assets/javascripts/discourse/app/components/modal/activation-edit.js b/app/assets/javascripts/discourse/app/components/modal/activation-edit.gjs similarity index 55% rename from app/assets/javascripts/discourse/app/components/modal/activation-edit.js rename to app/assets/javascripts/discourse/app/components/modal/activation-edit.gjs index e287e460523..03c28585a27 100644 --- a/app/assets/javascripts/discourse/app/components/modal/activation-edit.js +++ b/app/assets/javascripts/discourse/app/components/modal/activation-edit.gjs @@ -2,8 +2,12 @@ import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { action } from "@ember/object"; import { service } from "@ember/service"; +import ActivationEmailForm from "discourse/components/activation-email-form"; +import DButton from "discourse/components/d-button"; +import DModal from "discourse/components/d-modal"; import { extractError } from "discourse/lib/ajax-error"; import { changeEmail } from "discourse/lib/user-activation"; +import { i18n } from "discourse-i18n"; import ActivationResent from "./activation-resent"; export default class ActivationEdit extends Component { @@ -38,4 +42,28 @@ export default class ActivationEdit extends Component { updateNewEmail(email) { this.newEmail = email; } + + } diff --git a/app/assets/javascripts/discourse/app/components/modal/activation-edit.hbs b/app/assets/javascripts/discourse/app/components/modal/activation-edit.hbs deleted file mode 100644 index db187ad8a4a..00000000000 --- a/app/assets/javascripts/discourse/app/components/modal/activation-edit.hbs +++ /dev/null @@ -1,21 +0,0 @@ - - <:body> - - - <:footer> - - - - \ No newline at end of file