# Data Explorer UI 中缺少文本

**URL:** https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489
**Category:** Bug
**Tags:** data-explorer
**Created:** [2020年七月22日 12:12 UTC](https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489 "2020-07-22T12:12:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [2020年七月22日 12:12 UTC](https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489/1 "2020-07-22T12:12:08Z")

</div>

在此截图中，您可以看到“查询”、“创建者”和“最后运行时间”的表头缺失：

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/0/204cc46d9e3975c6afdb1dbbc74e61db46c55c16.png)

如果您查看代码，会发现任何在 `.hbs` 文件中通过 `labelKey` 定义的内容都没有显示：

> <https://github.com/discourse/discourse-data-explorer/blob/df9e21911e6ee3145d56b25f377218f59df0e471/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs#L178>

但通过 `{{i18n}}` 定义的文本则正常显示：

> <https://github.com/discourse/discourse-data-explorer/blob/df9e21911e6ee3145d56b25f377218f59df0e471/assets/javascripts/discourse/templates/admin/plugins-explorer.hbs#L183>

我尝试将 `labelKey` 的实例替换为 `label`，但问题仍未解决。@gerhard，这是一个已知问题，还是可能与最近的这项更改有关？

> <https://github.com/discourse/discourse-data-explorer/commit/ab1ec9cb6996505ba787976805940bc4a591e5bf>

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2020年七月22日 14:10 UTC](https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489/2 "2020-07-22T14:10:17Z")

</div>

> [@rishabh](#):
>
> 这可能与最近的这个更改有关吗？

不，这应该是另一个问题。也许是由于对 [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/components/directory-toggle.js](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/components/directory-toggle.js) 的更改导致的？

---

<div class="post-metadata">

### Author: ![AndreaHabib](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andreahabib/32/185872_2.png) [@AndreaHabib](https://meta.discourse.org/u/AndreaHabib)
#### Post date: [2020年八月11日 12:16 UTC](https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489/3 "2020-08-11T12:16:07Z")

</div>

问题已修复：将 directory-toggle 替换为 table-header-toggle - 拉取请求：

> <https://github.com/discourse/discourse-data-explorer/pull/58>
>
> \* changed directory-toggle to table-header-toggle which fixed the issue

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [2020年八月12日 06:34 UTC](https://meta.discourse.org/t/missing-text-on-the-data-explorer-ui/158489/4 "2020-08-12T06:34:18Z")

</div>


