Moin
Agosto 15, 2024, 9:16am
1
Não importa se clico em “Confirmar” ou “Reverter”, o texto no editor é “SuperTool script” depois.
Eu esperaria que fosse “supertool script” quando eu usar reverter.
4 curtidas
keegan
(Keegan George)
Agosto 16, 2024, 5:45pm
3
Obrigado @Moin por identificar isso! Isso agora deve ser resolvido com:
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 curtidas
keegan
(Keegan George)
Fechado
Agosto 17, 2024, 3:00pm
5
Este tópico foi fechado automaticamente após 21 horas. Novas respostas não são mais permitidas.