Ghost/ghost/admin/app/routes/settings/design/uploadtheme.js

19 lines
379 B
JavaScript
Raw Normal View History

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');
}
}
});