Ghost/ghost/admin/app/templates/dashboard.hbs
Kevin Ansfield f470549e80 Hid launch-site link on dashboard once wizard is completed
refs https://github.com/TryGhost/Team/issues/460

- use the `user.accessibility` field via the `feature` service to add a `launchComplete` property
  - this is the best place we have currently for UI-specific concerns
- toggle the property to `true` when the "Launch!" button is clicked in the final wizard step
- hide the launch site wizard link on the dashboard if launch has been completed
2021-02-04 18:35:19 +00:00

13 lines
439 B
Handlebars

<section class="gh-canvas">
<GhCanvasHeader class="gh-canvas-header">
<h2 class="gh-canvas-title" data-test-screen-title>
Dashboard
</h2>
</GhCanvasHeader>
<section class="view-container gh-main-width">
{{#if (and this.session.user.isOwner (not this.feature.launchComplete))}}
<LinkTo @route="launch">Launch site - Finish setup</LinkTo>
{{/if}}
</section>
</section>