mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
18 lines
483 B
JavaScript
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();
|
||
|
}
|
||
|
}
|