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:
Kevin Ansfield 2021-10-21 16:35:20 +01:00
parent fad0805344
commit 83eb392403

View File

@ -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() {