{"action":"created","issue":{"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/21","repository_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create","labels_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/21/comments","events_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/21/events","html_url":"https://github.com/cibernox/ember-power-select-with-create/pull/21","id":148729723,"number":21,"title":"Add support for the showCreateWhen in combination with async search","user":{"login":"corrspt","id":789263,"avatar_url":"https://avatars.githubusercontent.com/u/789263?v=3","gravatar_id":"","url":"https://api.github.com/users/corrspt","html_url":"https://github.com/corrspt","followers_url":"https://api.github.com/users/corrspt/followers","following_url":"https://api.github.com/users/corrspt/following{/other_user}","gists_url":"https://api.github.com/users/corrspt/gists{/gist_id}","starred_url":"https://api.github.com/users/corrspt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corrspt/subscriptions","organizations_url":"https://api.github.com/users/corrspt/orgs","repos_url":"https://api.github.com/users/corrspt/repos","events_url":"https://api.github.com/users/corrspt/events{/privacy}","received_events_url":"https://api.github.com/users/corrspt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T18:15:27Z","updated_at":"2016-04-15T21:49:55Z","closed_at":"2016-04-15T21:46:10Z","pull_request":{"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/pulls/21","html_url":"https://github.com/cibernox/ember-power-select-with-create/pull/21","diff_url":"https://github.com/cibernox/ember-power-select-with-create/pull/21.diff","patch_url":"https://github.com/cibernox/ember-power-select-with-create/pull/21.patch"},"body":"I was trying to use this addon with an async search + showCreateWhen to only display the \"Add a new\" option when that wasn't present in the search results. It didn't work so I dug through the code and found that \"showCreateWhen\" is only used when the array options are passed. \r\n\r\nThis PR makes the property also work on the async search. Feel free to make suggestions and improvements, this worked for me. Thanks for addon by the way."},"comment":{"url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/comments/210660083","html_url":"https://github.com/cibernox/ember-power-select-with-create/pull/21#issuecomment-210660083","issue_url":"https://api.github.com/repos/cibernox/ember-power-select-with-create/issues/21","id":210660083,"user":{"login":"felixkiss","id":256075,"avatar_url":"https://avatars.githubusercontent.com/u/256075?v=3","gravatar_id":"","url":"https://api.github.com/users/felixkiss","html_url":"https://github.com/felixkiss","followers_url":"https://api.github.com/users/felixkiss/followers","following_url":"https://api.github.com/users/felixkiss/following{/other_user}","gists_url":"https://api.github.com/users/felixkiss/gists{/gist_id}","starred_url":"https://api.github.com/users/felixkiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixkiss/subscriptions","organizations_url":"https://api.github.com/users/felixkiss/orgs","repos_url":"https://api.github.com/users/felixkiss/repos","events_url":"https://api.github.com/users/felixkiss/events{/privacy}","received_events_url":"https://api.github.com/users/felixkiss/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T21:49:55Z","updated_at":"2016-04-15T21:49:55Z","body":"Thanks. This is included in the newly released `0.1.8`."}}