# DButton no longer supports @action as a string. Please refactor to use an closure action instead

**URL:** https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377
**Category:** Development
**Created:** [May 9, 2023, 9:55am UTC](https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377 "2023-05-09T09:55:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [May 9, 2023, 10:05am UTC](https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377/2 "2023-05-09T10:05:33Z")

</div>

You can find detailed information about modern Ember actions here: [Component State and Actions - Components - Ember Guides](https://guides.emberjs.com/v3.28.0/components/component-state-and-actions/)

But essentially, the message you’re seeing means that you need to change something like

```hbs
{{d-button action="blah"}}

```

to something like:

```hbs
{{d-button action=(action "blah")}}

```

If you can share a link or snippet of your code, I’m sure we can help out with some more specific instructions

---

_[View the full topic](https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377)._
