Revert "pass post tags as array to ember-cli-selectize"
This reverts commit efff6f62ae
.
This commit is contained in:
parent
2d2a8f9f41
commit
b4bae4741a
@ -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'}, () => {
|
||||
|
@ -41,7 +41,7 @@
|
||||
{{gh-selectize
|
||||
id="tag-input"
|
||||
multiple=true
|
||||
selection=existingTags
|
||||
selection=model.tags
|
||||
content=availableTags
|
||||
optionValuePath="content.uuid"
|
||||
optionLabelPath="content.name"
|
||||
|
Loading…
Reference in New Issue
Block a user