Moin
Août 15, 2024, 9:16
1
Peu importe si je clique sur « Confirmer » ou « Revert », le texte dans l’éditeur est « SuperTool script » par la suite.
Je m’attendrais à ce qu’il soit « supertool script » lorsque j’utilise « Revert ».
4 « J'aime »
keegan
(Keegan George)
Août 16, 2024, 5:45
3
Merci @Moin d’avoir signalé cela ! Ceci devrait maintenant être résolu avec :
main ← fix-diff-modal
opened 11:36PM - 15 Aug 24 UTC
In https://github.com/discourse/discourse-ai/pull/715, we refactored the compose… r helper menu to use `DMenu` instead of `popperJS`. Since the `AiComposerHelperMenu` component was an instance of `DMenu`, having modals defined in the component's template directly was likely resulting in various issues. For example, clicking anywhere on the `DiffModal` was closing the modal which led to issues such as [being unable to revert.](https://meta.discourse.org/t/the-revert-button-in-the-changes-popup-does-not-work/321783/2)
In this PR we update the usage of the Diff and Thumbnail Suggestion modals to be instantiated by the modal service using `this.modal.show()` instead of being directly defined in the template. This allows for the modals to work correctly.
3 « J'aime »
keegan
(Keegan George)
A fermé ce sujet ()
Août 17, 2024, 3:00
5
Ce sujet a été automatiquement fermé après 21 heures. Les nouvelles réponses ne sont plus autorisées.