{"action":"closed","issue":{"url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/114","repository_url":"https://api.github.com/repos/knownasilya/ember-toggle","labels_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/114/comments","events_url":"https://api.github.com/repos/knownasilya/ember-toggle/issues/114/events","html_url":"https://github.com/knownasilya/ember-toggle/issues/114","id":322490183,"number":114,"title":"Toggle name not passed to action","user":{"login":"kmichek","id":38284,"avatar_url":"https://avatars2.githubusercontent.com/u/38284?v=4","gravatar_id":"","url":"https://api.github.com/users/kmichek","html_url":"https://github.com/kmichek","followers_url":"https://api.github.com/users/kmichek/followers","following_url":"https://api.github.com/users/kmichek/following{/other_user}","gists_url":"https://api.github.com/users/kmichek/gists{/gist_id}","starred_url":"https://api.github.com/users/kmichek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmichek/subscriptions","organizations_url":"https://api.github.com/users/kmichek/orgs","repos_url":"https://api.github.com/users/kmichek/repos","events_url":"https://api.github.com/users/kmichek/events{/privacy}","received_events_url":"https://api.github.com/users/kmichek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-12T07:22:35Z","updated_at":"2018-05-21T14:28:48Z","closed_at":"2018-05-21T14:28:48Z","author_association":"NONE","body":"Hi, I'm trying to get the toggle name in my action:\r\n\r\n```js\r\n// app/templates/components/my-comp.hbs\r\n{{x-toggle name='paperworkIssues' value=paperworkIssues theme='material' size='medium' onToggle=(action 'toggled') }}\r\n```\r\n\r\n```js\r\n// app/components/my-comp.js\r\nimport Component from '@ember/component';\r\nexport default Component.extend({\r\n  actions: {  \r\n    toggled(isToggled, name){\r\n      console.log(isToggled); // true / false OK\r\n      console.log(name); // undefined :-(\r\n      this.set('paperworkIssues', isToggled); // toggles paperworkIssues OK\r\n    },\r\n  }\r\n});\r\n```\r\n\r\nWhat am I doing wrong, please? Thanks!"}}
{"actor":{"display_login":"knownasilya"}}