# Можно ли изменить иконку для уведомлений персонала?

**URL:** https://meta.discourse.org/t/is-it-possible-to-change-the-icon-for-staff-notices/271436
**Category:** Development
**Tags:** post-notices
**Created:** [26.Июнь.2021 17:23:13 UTC](https://meta.discourse.org/t/is-it-possible-to-change-the-icon-for-staff-notices/271436 "2021-06-26T17:23:13Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [29.Август.2025 09:11:42 UTC](https://meta.discourse.org/t/is-it-possible-to-change-the-icon-for-staff-notices/271436/5 "2025-08-29T09:11:42Z")

</div>

Я только что попробовал это; первый фрагмент кода JS нужно было немного обновить.

Теперь это нужно разместить во вкладке JS компонента темы (или темы) вместо этого:

```js
import { apiInitializer } from "discourse/lib/api";
import { iconNode } from "discourse-common/lib/icon-library";

export default apiInitializer("0.11.1", (api) => {
  api.decorateWidget("post-notice:before", () => {
    return iconNode("heart");
  });
});

```

Я не рассматривал использование изображения, извините.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-change-the-icon-for-staff-notices/271436)._
