20 lines
493 B
JavaScript
20 lines
493 B
JavaScript
|
|
import Controller from '@ember/controller';
|
|
import { computed } from '@ember/object';
|
|
import { inject as service } from '@ember/service';
|
|
import config from 'kredits-web/config/environment';
|
|
|
|
export default Controller.extend({
|
|
|
|
kredits: service(),
|
|
|
|
ipfsGatewayUrl: computed(function() {
|
|
return config.ipfs.gatewayUrl;
|
|
}),
|
|
|
|
siblingContributions: computed('model.groupId', 'kredits.contributions.[]', function() {
|
|
return this.kredits.siblingContributions(this.model);
|
|
})
|
|
|
|
});
|