2022-01-18 18:16:22 +03:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default class DashboardLatestMemberActivityComponent extends Component {
|
2022-02-07 14:11:19 +03:00
|
|
|
@service feature;
|
2022-01-18 18:16:22 +03:00
|
|
|
@service session;
|
|
|
|
@service settings;
|
|
|
|
|
|
|
|
get shouldDisplay() {
|
2022-02-07 14:11:19 +03:00
|
|
|
if (this.feature.improvedOnboarding) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-01-18 18:16:22 +03:00
|
|
|
const isOwner = this.session.user?.isOwnerOnly;
|
|
|
|
const hasCompletedLaunchWizard = this.settings.get('editorIsLaunchComplete');
|
|
|
|
|
|
|
|
if (isOwner && !hasCompletedLaunchWizard) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|