discourse/plugins
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
..
chat DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00
checklist DEV: Use `service:` lookups instead of `:main` (#25402) 2024-01-24 15:59:44 +01:00
discourse-details Update translations (#25659) 2024-02-13 16:11:30 +01:00
discourse-lazy-videos DEV: Use `service:` lookups instead of `:main` (#25402) 2024-01-24 15:59:44 +01:00
discourse-local-dates Update translations (#25914) 2024-02-27 20:50:30 +01:00
discourse-narrative-bot Update translations (#25914) 2024-02-27 20:50:30 +01:00
discourse-presence DEV: Convert min_trust_to_edit_wiki_post to groups (#24766) 2023-12-12 15:20:37 +11:00
footnote DEV: Use `service:` lookups instead of `:main` (#25402) 2024-01-24 15:59:44 +01:00
poll Update translations (#25914) 2024-02-27 20:50:30 +01:00
spoiler-alert DEV: Use `service:` lookups instead of `:main` (#25402) 2024-01-24 15:59:44 +01:00
styleguide DEV: Introduce a helper for handling events (#25433) 2024-02-28 14:00:53 +01:00