Revert "pass post tags as array to ember-cli-selectize"

This reverts commit efff6f62ae.
This commit is contained in:
Kevin Ansfield 2016-02-18 17:57:18 +00:00
parent 2d2a8f9f41
commit b4bae4741a
2 changed files with 1 additions and 6 deletions

View File

@ -174,11 +174,6 @@ export default Controller.extend(SettingsMenuMixin, {
this.set('debounceId', debounceId);
},
// this exists because selectize throws errors on transition if it doesn't
existingTags: computed('model.tags.[]', function () {
return this.get('model.tags').toArray();
}),
// live-query of all tags for tag input autocomplete
availableTags: computed(function () {
return this.get('store').filter('tag', {limit: 'all'}, () => {

View File

@ -41,7 +41,7 @@
{{gh-selectize
id="tag-input"
multiple=true
selection=existingTags
selection=model.tags
content=availableTags
optionValuePath="content.uuid"
optionLabelPath="content.name"