mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
Merge pull request #6542 from kevinansfield/fix-tags-input
Fix "new post"->"tags" transition
This commit is contained in:
commit
8affab16e3
@ -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'}, () => {
|
||||
|
@ -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');
|
||||
|
@ -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