Moin
15.Август.2024 09:16:55
1
Неважно, нажимаю ли я «Подтвердить» или «Отменить», текст в редакторе после этого остаётся «SuperTool script».
Я ожидал, что при использовании «Отменить» текст будет «supertool script».
4 лайка
keegan
(Keegan George)
16.Август.2024 17:45:18
3
Спасибо @Moin за то, что заметили это! Теперь это должно быть исправлено в:
main ← fix-diff-modal
merged 05:08PM - 16 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 лайка
keegan
(Keegan George)
Закрыл(а) тему
17.Август.2024 15:00:07
5
Эта тема была автоматически закрыта через 21 час. Новые ответы больше не принимаются.