Merge pull request #6542 from kevinansfield/fix-tags-input

Fix "new post"->"tags" transition
This commit is contained in:
Austin Burdine 2016-02-18 13:01:18 -06:00
commit 8affab16e3
3 changed files with 1 additions and 8 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

@ -30,8 +30,6 @@ export default AuthenticatedRoute.extend(CurrentUserSettings, PaginationRoute, S
},
model() {
this.store.unloadAll('tag');
return this.loadFirstPage().then(() => {
return this.store.filter('tag', (tag) => {
return !tag.get('isNew');

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"