discourse/app/assets/javascripts/admin/addon
Joffrey JAFFEUX c197daa04c
DEV: allows to alter category name/description (#28263)
This commit adds two new getters to the category model:
- `displayName`
- `descriptionText`

These getters are used instead of `name` and `description_text` where appropriate.

On top of this two transformers have been added to allow plugins to alter these getters:

```javascript
api.registerValueTransformer(
  "category-display-name",
  ({ value, context }) =>
    value + "-" + context.category.id + "-transformed"
);
```

```javascript
api.registerValueTransformer(
  "category-description-text",
  ({ value, context }) =>
    value + "-" + context.category.id + "-transformed"
);
```
2024-08-08 17:33:23 +02:00
..
adapters FEATURE: Add Filter for Webhook Events by Status (#27332) 2024-06-07 10:26:00 -05:00
components DEV: allows to alter category name/description (#28263) 2024-08-08 17:33:23 +02:00
controllers FIX: Badge image uploader (#28188) 2024-08-01 15:36:17 +02:00
helpers DEV: replace registerUnbound usage with default exports (#23802) 2023-10-19 14:28:25 +01:00
lib DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
mixins DEV: Remove object-property-decorators from admin mixins (#28172) 2024-07-31 17:37:15 +01:00
models DEV: Add stacked line chart mode (#28203) 2024-08-02 09:40:27 -07:00
routes DEV: Move config area site setting fetch into new controller (#28136) 2024-07-30 15:41:28 +10:00
services FIX: More header dropdown admin sidebar fixes (#27241) 2024-05-30 12:55:25 +10:00
templates DEV: allows to alter category name/description (#28263) 2024-08-08 17:33:23 +02:00