2022-01-17 13:05:27 +03:00
|
|
|
import AdminRoute from 'ghost-admin/routes/admin';
|
2021-10-20 22:54:05 +03:00
|
|
|
import {action} from '@ember/object';
|
2021-10-12 12:18:55 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2021-09-20 13:05:16 +03:00
|
|
|
|
2022-01-17 13:05:27 +03:00
|
|
|
export default class ChangeThemeRoute extends AdminRoute {
|
2021-10-12 12:18:55 +03:00
|
|
|
@service store;
|
|
|
|
|
|
|
|
model() {
|
2021-10-18 15:02:28 +03:00
|
|
|
return this.store.findAll('theme');
|
2021-10-12 12:18:55 +03:00
|
|
|
}
|
2021-10-20 22:54:05 +03:00
|
|
|
|
|
|
|
@action
|
|
|
|
willTransition() {
|
|
|
|
this.controllerFor('settings.design.change-theme').reset();
|
|
|
|
}
|
2021-09-20 13:05:16 +03:00
|
|
|
}
|