mirror of
https://github.com/flarum/framework.git
synced 2024-12-14 16:13:50 +08:00
14 lines
260 B
JavaScript
14 lines
260 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Route.extend({
|
|
model: function(params) {
|
|
return this.store.find('user', params.username);
|
|
},
|
|
|
|
afterModel: function(model) {
|
|
if (!model.get('joinTime')) {
|
|
return model.reload();
|
|
}
|
|
}
|
|
});
|