# Как создать вкладку с пользовательской активностью в профиле пользователя?

**URL:** https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047
**Category:** Development
**Created:** [09.Апрель.2025 10:29:41 UTC](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047 "2025-04-09T10:29:41Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![SubStrider](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/substrider/32/512604_2.png) [@SubStrider](https://meta.discourse.org/u/SubStrider)
#### Post date: [17.Апрель.2025 07:33:06 UTC](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047/9 "2025-04-17T07:33:06Z")

</div>

> [@SubStrider](#):
>
> Добавить кнопку в область управления постами для открытия формы

Для этого я использовал следующий код для отображения кнопки:

```plaintext
api.registerValueTransformer("post-menu-buttons", ({ value: dag, context })

```

Теперь я застрял: не могу открыть модальное окно без ошибок при использовании других компонентов.

> [@GJS component fails with "undefined helper" error when shown via modal service (Discourse 3.5.0](https://meta.discourse.org/t/gjs-component-fails-with-undefined-helper-error-when-shown-via-modal-service-discourse-3-5-0/362272):
>
> encountering a persistent rendering error when trying to display a Glimmer component (.gjs) as a modal using this.modal.show(). The modal is triggered from another GJS component added to the post menu via the post-menu-buttons value transformer. I’m running Discourse v3.5.0.beta3-dev I am trying to Add a button to the post menu using api.registerValueTransformer("post-menu-buttons", ...). Clicking this button should open a modal defined by a separate GJS component (FeedbackFormModal) using this…

---

_[View the full topic](https://meta.discourse.org/t/how-to-create-a-custom-activity-tab-in-user-profile/361047)._
