mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
Added a redirect from /settings/theme -> /settings/design
no issue - ensure the old theme screen is not accessible when the `customThemeSettings` feature is active to avoid confusion
This commit is contained in:
parent
fad0805344
commit
83eb392403
@ -4,11 +4,16 @@ import RSVP from 'rsvp';
|
|||||||
import {inject as service} from '@ember/service';
|
import {inject as service} from '@ember/service';
|
||||||
|
|
||||||
export default AuthenticatedRoute.extend(CurrentUserSettings, {
|
export default AuthenticatedRoute.extend(CurrentUserSettings, {
|
||||||
|
feature: service(),
|
||||||
settings: service(),
|
settings: service(),
|
||||||
|
|
||||||
beforeModel() {
|
beforeModel() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
this.transitionAuthor(this.session.user);
|
this.transitionAuthor(this.session.user);
|
||||||
|
|
||||||
|
if (this.feature.customThemeSettings) {
|
||||||
|
this.transitionTo('settings.design');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
model() {
|
model() {
|
||||||
|
Loading…
Reference in New Issue
Block a user