discourse/app/assets/javascripts/admin/addon/components/modal
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
..
api-key-urls.hbs
badge-preview.hbs
badge-preview.js DEV: form-kit 2024-07-17 11:59:35 +02:00
color-scheme-select-base.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
color-scheme-select-base.js
custom-date-range.hbs
custom-date-range.js
delete-posts-confirmation.hbs
delete-posts-confirmation.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
delete-user-posts-progress.hbs
delete-user-posts-progress.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
edit-badge-groupings.hbs
edit-badge-groupings.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
form-template-validation-options.hbs
form-template-validation-options.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
incoming-email.hbs
install-theme.hbs DEV: Add loading spinner to install theme modal (#25888) 2024-02-26 14:14:21 -07:00
install-theme.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
merge-users-confirmation.hbs
merge-users-confirmation.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
merge-users-progress.hbs
merge-users-progress.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
merge-users-prompt.hbs
merge-users-prompt.js
penalize-user.hbs DEV: Use fn+mut instead of action+mut (#26057) 2024-03-06 18:05:03 +01:00
penalize-user.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
reseed.hbs DEV: allows to alter category name/description (#28263) 2024-08-08 17:33:23 +02:00
reseed.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
site-setting-default-categories.hbs
site-setting-default-categories.js
staff-action-log-details.hbs
start-backup.hbs FIX: Add checkbox-label to more checkbox label elements (#24174) 2023-10-31 08:57:50 +01:00
start-backup.js DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
theme-change.hbs
theme-change.js
uploaded-image-list.hbs FIX: Allow deleting avatars from the selectable avatars setting (#26720) 2024-04-24 16:07:12 -04:00
uploaded-image-list.js FIX: Allow deleting avatars from the selectable avatars setting (#26720) 2024-04-24 16:07:12 -04:00
watched-word-test.hbs
watched-word-test.js PERF: Avoid excessive object creations in watched words (#27354) 2024-06-10 14:44:31 +02:00