0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Fix new post->tags transition

refs #6483, closes #6541
- removes unloading of all tags when entering the tags screen. Tags list will now function similarly to the content list where already-loaded tags are visible immediately.

Fixes #6483 because it prevents selectize's data being changed out from underneath it before it's destroyed.
This commit is contained in:
Kevin Ansfield 2016-02-18 18:01:08 +00:00
parent b4bae4741a
commit 455d456a5b

View file

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