2018-01-20 00:46:47 -08:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2017-02-13 14:53:23 -08:00
|
|
|
|
2018-01-20 00:46:47 -08:00
|
|
|
export default Component.extend({
|
2017-02-13 14:53:23 -08:00
|
|
|
tagName: 'section',
|
|
|
|
classNames: ['dataset-owner-list'],
|
|
|
|
|
2018-01-20 00:46:47 -08:00
|
|
|
ownersEmailList: computed('owners', function() {
|
2017-02-13 14:53:23 -08:00
|
|
|
// Reduce owner email to a string containing emails, each separated by comma
|
2018-01-20 00:46:47 -08:00
|
|
|
return this.get('owners')
|
|
|
|
.mapBy('email')
|
|
|
|
.filter(email => email)
|
|
|
|
.join(', ');
|
2017-02-13 14:53:23 -08:00
|
|
|
})
|
|
|
|
});
|