WIP Group contributions in UI
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
|
||||
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);
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user