Ghost/ghost/admin/app/routes/setup/done.js
James Morris bf676ddfb0 Renamed Finishing Touches onboarding step to Done with other changes and styling tweaks
refs: https://github.com/TryGhost/Team/issues/1376

- renamed finishing touches file to done
- no last modal, just the done screen for first start
- added options for next steps
2022-03-02 12:46:15 +00:00

18 lines
483 B
JavaScript

import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
export default class SetupFinishingTouchesRoute extends Route {
@service settings;
@service themeManagement;
model() {
this.themeManagement.setPreviewType('homepage');
this.themeManagement.updatePreviewHtmlTask.perform();
}
deactivate() {
// rollback any unsaved setting changes when leaving
this.settings.rollbackAttributes();
}
}