mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-16 05:34:54 +00:00
16 lines
422 B
JavaScript
16 lines
422 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
tagName: 'section',
|
|
classNames: ['dataset-owner-list'],
|
|
|
|
ownersEmailList: computed('owners', function() {
|
|
// Reduce owner email to a string containing emails, each separated by comma
|
|
return this.get('owners')
|
|
.mapBy('email')
|
|
.filter(email => email)
|
|
.join(', ');
|
|
})
|
|
});
|