discourse/app/assets/javascripts/admin/addon
Jarek Radosz 36a9b5d0fa
DEV: Introduce a helper for handling events (#25433)
Instead of

```hbs
{{on "input" (action this.foo value="target.value")}}
{{on "input" (action (mut this.bar) value="target.value")}}
```

you can use:

```hbs
{{on "input" (with-event-value this.foo)}}
{{on "input" (with-event-value (fn (mut this.bar)))}}
```

or in gjs:

```gjs
import { fn } from "@ember/helper";
import { on } from "@ember/modifier";
import withEventValue from "discourse/helpers/with-event-value";
…
{{on "input" (withEventValue (fn (mut this.bar)))}}
```
2024-02-28 14:00:53 +01:00
..
adapters DEV: Migrate remaining admin classes to native syntax (#20717) 2023-03-17 12:25:05 +00:00
components DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00
controllers FEATURE: Groundwork for schema theme settings UI (#25673) 2024-02-16 09:31:49 +03: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: Replace period mixin with a component (#25292) 2024-01-18 13:06:42 +01:00
models FIX: Computed property override error for webhook.categories (#25418) 2024-01-25 12:25:02 +00:00
routes DEV: save/restore the previous sidebar panel state (#25899) 2024-02-28 12:33:59 +11:00
services FIX: "Action Logs" button on user admin page (#25300) 2024-01-17 13:49:59 +00:00
templates DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00