mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
bbd4c452b9
closes https://github.com/TryGhost/Team/issues/1294 - ensures latest member activity is shown when improvedOnboarding feature is enabled no matter what the `editorIsLaunchComplete` value is to better show what the dashboard will look like when the launch wizard is removed
24 lines
613 B
JavaScript
24 lines
613 B
JavaScript
import Component from '@glimmer/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class DashboardLatestMemberActivityComponent extends Component {
|
|
@service feature;
|
|
@service session;
|
|
@service settings;
|
|
|
|
get shouldDisplay() {
|
|
if (this.feature.improvedOnboarding) {
|
|
return true;
|
|
}
|
|
|
|
const isOwner = this.session.user?.isOwnerOnly;
|
|
const hasCompletedLaunchWizard = this.settings.get('editorIsLaunchComplete');
|
|
|
|
if (isOwner && !hasCompletedLaunchWizard) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|