{"action":"created","issue":{"url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/97","repository_url":"https://api.github.com/repos/jgwhite/ember-sortable","labels_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/97/comments","events_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/97/events","html_url":"https://github.com/jgwhite/ember-sortable/issues/97","id":161222709,"number":97,"title":"Delete model are not removed from sortable-group","user":{"login":"thermech","id":1183554,"avatar_url":"https://avatars.githubusercontent.com/u/1183554?v=3","gravatar_id":"","url":"https://api.github.com/users/thermech","html_url":"https://github.com/thermech","followers_url":"https://api.github.com/users/thermech/followers","following_url":"https://api.github.com/users/thermech/following{/other_user}","gists_url":"https://api.github.com/users/thermech/gists{/gist_id}","starred_url":"https://api.github.com/users/thermech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thermech/subscriptions","organizations_url":"https://api.github.com/users/thermech/orgs","repos_url":"https://api.github.com/users/thermech/repos","events_url":"https://api.github.com/users/thermech/events{/privacy}","received_events_url":"https://api.github.com/users/thermech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-20T15:24:42Z","updated_at":"2016-06-20T15:41:31Z","closed_at":null,"body":"Hi, \r\n\r\nI created a sorted group like this\r\n\r\n```\r\n{{#sortable-group tagName=\"ul\" onChange=\"reorderItems\" as |group|}}\r\n  {{#each items as |item|}}\r\n    {{#sortable-item tagName=\"li\" model=item group=group handle=\".handle\"}}\r\n      ...\r\n    {{/sortable-item}}\r\n  {{/each}}\r\n{{/sortable-group}}\r\n```\r\n\r\nWhen I delete a item from the store, it's not reflected in the sortable group. The item stay there until I refresh the page. \r\n\r\nHow can I refresh the sortable-group ?"},"comment":{"url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/comments/227180748","html_url":"https://github.com/jgwhite/ember-sortable/issues/97#issuecomment-227180748","issue_url":"https://api.github.com/repos/jgwhite/ember-sortable/issues/97","id":227180748,"user":{"login":"thermech","id":1183554,"avatar_url":"https://avatars.githubusercontent.com/u/1183554?v=3","gravatar_id":"","url":"https://api.github.com/users/thermech","html_url":"https://github.com/thermech","followers_url":"https://api.github.com/users/thermech/followers","following_url":"https://api.github.com/users/thermech/following{/other_user}","gists_url":"https://api.github.com/users/thermech/gists{/gist_id}","starred_url":"https://api.github.com/users/thermech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thermech/subscriptions","organizations_url":"https://api.github.com/users/thermech/orgs","repos_url":"https://api.github.com/users/thermech/repos","events_url":"https://api.github.com/users/thermech/events{/privacy}","received_events_url":"https://api.github.com/users/thermech/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T15:41:31Z","updated_at":"2016-06-20T15:41:31Z","body":"Yeah, for sure, here they are:\r\n\r\n```\r\n  items: function() {\r\n    return this.get('items').sortBy('index');\r\n  }.property('model.items.[]'),\r\n```\r\n\r\nAnd the delete action:\r\n\r\n```\r\n  actions: {\r\n    deleteItem(itemId) {\r\n      let item = this.store.peekRecord('item', itemId);\r\n      item.deleteRecord();\r\n\r\n      item.save()\r\n        .then(() => this._onDeleteSuccess())\r\n        .catch(() => this._onDeleteFailure());\r\n    }\r\n  }\r\n```"}}
{"actor":{"display_login":"thermech"}}