mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:53:42 +08:00
a62e04f956
Note: npm source for ember-json-api changed to a fork, but I still had to apply a custom change to get polymorphic relationships to work (see https://github.com/kurko/ember-json-api/pull/71#issuecomment-85257281)
13 lines
326 B
JavaScript
13 lines
326 B
JavaScript
import Ember from 'ember';
|
|
|
|
import FadeIn from 'flarum/mixins/fade-in';
|
|
|
|
export default Ember.Component.extend(FadeIn, {
|
|
layoutName: 'components/user/activity-item',
|
|
tagName: 'li',
|
|
|
|
componentName: Ember.computed('activity.contentType', function() {
|
|
return 'user/activity-'+this.get('activity.contentType');
|
|
})
|
|
});
|