Push user route history in a more appropriate place

This commit is contained in:
Toby Zerner 2015-03-27 11:52:46 +10:30
parent 2a33d5d72f
commit b482ada692
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,10 @@
import Ember from 'ember';
export default Ember.Route.extend({
import PushesHistory from 'flarum/mixins/pushes-history';
export default Ember.Route.extend(PushesHistory, {
historyKey: 'user',
model: function(params) {
return this.store.find('user', params.username);
},

View File

@ -1,10 +1,6 @@
import Ember from 'ember';
import PushesHistory from 'flarum/mixins/pushes-history';
export default Ember.Route.extend(PushesHistory, {
historyKey: 'user',
export default Ember.Route.extend({
model: function() {
return Ember.RSVP.resolve(Ember.ArrayProxy.create());
},