# How to add action for button in plugin

**URL:** https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383
**Category:** Development
**Created:** [May 31, 2020, 1:09pm UTC](https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383 "2020-05-31T13:09:28Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [May 31, 2020, 3:25pm UTC](https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383/2 "2020-05-31T15:25:12Z")

</div>

You were very close 👍

You only need to change the file name. Both the `.hbs` and `js.es6` files in your connector class need to have the same name. So, if you change

`actions.js.es6`

to

`button.js.es6`

it should work. You can read more about connector classes here

> [@Important changes to Plugin Outlets for Ember 2.10](https://meta.discourse.org/t/important-changes-to-plugin-outlets-for-ember-2-10/54136):
>
> Shortly I will be merging a branch of Discourse into master that updates us to the latest stable version of Ember, which is 2.10. This is exciting because we’ve been behind Ember’s stable branch for a while and we’ve finally caught up! It also contains the Glimmer 2 template engine which is quite a bit faster so the application should be more responsive, and it also cuts down on our template file sizes so the app should be quicker to download. However, there is a downside, and that I wasn’t abl…

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-action-for-button-in-plugin/153383)._
