mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
19 lines
508 B
JavaScript
19 lines
508 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class DashboardLatestMemberActivityComponent extends Component {
|
||
|
@service session;
|
||
|
@service settings;
|
||
|
|
||
|
get shouldDisplay() {
|
||
|
const isOwner = this.session.user?.isOwnerOnly;
|
||
|
const hasCompletedLaunchWizard = this.settings.get('editorIsLaunchComplete');
|
||
|
|
||
|
if (isOwner && !hasCompletedLaunchWizard) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
}
|