mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +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';
|
||||
|
||||
export default AuthenticatedRoute.extend(CurrentUserSettings, {
|
||||
feature: service(),
|
||||
settings: service(),
|
||||
|
||||
beforeModel() {
|
||||
this._super(...arguments);
|
||||
this.transitionAuthor(this.session.user);
|
||||
|
||||
if (this.feature.customThemeSettings) {
|
||||
this.transitionTo('settings.design');
|
||||
}
|
||||
},
|
||||
|
||||
model() {
|
||||
|
Loading…
Reference in New Issue
Block a user