8cc1b02d19
Adds a 3-pane layout option for showing details, as well as a dashboard sub-route for showing contributor details in the new details pane.
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
import Controller from '@ember/controller';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Controller.extend({
|
|
|
|
roleName: computed('model.isCore', 'totalKreditsEarned', function() {
|
|
if (this.model.isCore) return 'Core Contributor';
|
|
if (this.model.totalKreditsEarned <= 5000) return 'Newcomer';
|
|
return 'Contributor';
|
|
})
|
|
|
|
});
|