mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
24 lines
589 B
JavaScript
24 lines
589 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class RecentActivity 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;
|
||
|
}
|
||
|
}
|