0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Removed dashboard widgets when onboarding checklist is active

ref https://linear.app/tryghost/issue/IPC-128/hide-dashboard-widgets-if-onboarding-checklist-is-active
This commit is contained in:
Djordje Vlaisavljevic 2024-04-01 16:07:14 +01:00
parent 541395434d
commit 96b23b3e6a
2 changed files with 23 additions and 17 deletions
ghost/admin/app
styles/layouts
templates

View file

@ -2770,6 +2770,7 @@ Onboarding checklist */
align-items: center;
flex-direction: column;
min-height: 100vh;
margin-bottom: -48px;
position: relative;
/* background: url(img/gradient-bg.png) no-repeat; */
background-size: contain;
@ -2952,8 +2953,12 @@ Onboarding checklist */
font-size: 1.5rem;
}
.gh-onboarding-help a {
color: #30cf43
}
.gh-onboarding-help a:hover {
color: var(--darkgrey);
color: #2bba3c;
}
.gh-onboarding-skip {

View file

@ -91,11 +91,10 @@
<Dashboard::OnboardingChecklist />
{{/if}}
{{#if this.hasPaidTiers}}
<Dashboard::Charts::Overview />
{{/if}}
{{#unless this.onboarding.isChecklistShown}}
{{#if this.hasPaidTiers}}
<Dashboard::Charts::Overview />
{{/if}}
<div class="gh-dashboard-group {{if this.isTotalMembersZero 'is-zero'}}" data-test-dashboard="attribution">
<Dashboard::Charts::AnchorAttribution />
{{#if this.hasPaidTiers}}
@ -120,21 +119,23 @@
{{/unless}}
{{/if}}
<div class="gh-dashboard-recents-mentions">
<Dashboard::Charts::Recents />
</div>
{{#unless this.onboarding.isChecklistShown}}
<div class="gh-dashboard-recents-mentions">
<Dashboard::Charts::Recents />
</div>
<div class="gh-dashboard-split gh-dashboard-box is-secondary">
<Dashboard::Resources::Resources />
<Dashboard::Resources::Newsletter />
</div>
<div class="gh-dashboard-split gh-dashboard-box is-secondary">
<Dashboard::Resources::Resources />
<Dashboard::Resources::Newsletter />
</div>
<Dashboard::Resources::ExploreFeed />
<Dashboard::Resources::ExploreFeed />
<div class="gh-dashboard-split gh-dashboard-box no-boarder">
<Dashboard::Resources::Community />
<Dashboard::Resources::WhatsNew />
</div>
<div class="gh-dashboard-split gh-dashboard-box no-boarder">
<Dashboard::Resources::Community />
<Dashboard::Resources::WhatsNew />
</div>
{{/unless}}
{{/if}}
</section>