2022-03-01 17:57:57 +03:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default class extends Component {
|
|
|
|
@service settings;
|
2022-09-23 18:20:11 +03:00
|
|
|
|
2022-09-27 19:29:29 +03:00
|
|
|
get referrerSource() {
|
2022-10-03 16:28:48 +03:00
|
|
|
const source = this.args.member.get('attribution')?.referrer_source;
|
|
|
|
return source === 'Created manually' ? null : source;
|
2022-09-23 18:20:11 +03:00
|
|
|
}
|
2022-10-03 12:28:00 +03:00
|
|
|
|
|
|
|
get showAttribution() {
|
2022-10-03 16:28:48 +03:00
|
|
|
return this.referrerSource || (this.args.member?.get('attribution')?.url && this.args.member?.get('attribution')?.title);
|
2022-10-03 12:28:00 +03:00
|
|
|
}
|
2022-09-23 18:20:11 +03:00
|
|
|
}
|