mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
fda94fedab
no issue - https://github.com/ember-cli/eslint-plugin-ember/blob/HEAD/docs/rules/alias-model-in-controller.md - replace `model` with a meaningful property name everywhere possible - refactor `design` and `general` settings controllers to use a directly injected settings service rather than passing it in as a "model" to be more explicit
19 lines
379 B
JavaScript
19 lines
379 B
JavaScript
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
|
|
export default AuthenticatedRoute.extend({
|
|
|
|
model() {
|
|
return this.get('store').findAll('theme');
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set('themes', model);
|
|
},
|
|
|
|
actions: {
|
|
cancel() {
|
|
this.transitionTo('settings.design');
|
|
}
|
|
}
|
|
});
|