mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 04:26:16 +08:00
Push user route history in a more appropriate place
This commit is contained in:
parent
2a33d5d72f
commit
b482ada692
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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());
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user