Ghost/ghost/admin/app/controllers/dashboard.js
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

7 lines
202 B
JavaScript

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
export default class DashboardController extends Controller {
@service feature;
@service session;
}