# 토픽 커넥터에서 가시성 전환

**URL:** https://meta.discourse.org/t/toggling-visibility-within-a-topic-connector/367898
**Category:** Development
**Created:** [5월 28, 2025, 7:43오전 UTC](https://meta.discourse.org/t/toggling-visibility-within-a-topic-connector/367898 "2025-05-28T07:43:08Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [5월 28, 2025, 7:43오전 UTC](https://meta.discourse.org/t/toggling-visibility-within-a-topic-connector/367898/1 "2025-05-28T07:43:08Z")

</div>

컴포넌트에서 커넥터를 통해 Topic Controller의 `toggleVisibility` 액션에 액세스하고 싶습니다.

이전에 비슷한 사례가 있었던 것 같습니다.

다음과 같은 PR이 받아들여질까요?:

> <https://github.com/discourse/discourse/blob/f4d4f371e682c6ed0707cc09f7e6aa15406ee4cc/app/assets/javascripts/discourse/app/templates/topic.gjs#L90>

아래와 같이 변경하는 것입니다:

```plaintext
      <span>
        <PluginOutlet
          @name="topic-above-post-stream"
          @connectorTagName="div"
          @outletArgs={{lazyHash
            model=@controller.model
            editFirstPost=@controller.editFirstPost
            toggleVisibility=@controller.toggleVisibility
          }}
        />
      </span>

```

가능하다면 PR을 올리겠습니다.

감사합니다!

---

_[View the full topic](https://meta.discourse.org/t/toggling-visibility-within-a-topic-connector/367898)._
