mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
3b9525dd63
refs: https://github.com/TryGhost/Team/issues/1462 - remove dummy percentages where not necessary - trying out a narrower width for the dashboard - added in a basic layout for the various charts - added more specific styles to each of the graphs - tried out a different way of displaying metrics - different way to show headers for each module - made the grid and flex layouts a little more flexible - there are some bits to still clean up with code
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;
|
|
}
|
|
}
|