Skip to content

Commit 9931bf9

Browse files
committed
simple-auth: Remove obsolete ApplicationRouteMixin mixin usage
1 parent f70c667 commit 9931bf9

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

ember/app/routes/application.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ import Ember from 'ember';
77
import RSVP from 'rsvp';
88

99
import * as Sentry from '@sentry/browser';
10-
import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';
1110

1211
import _availableLocales from '../utils/locales';
1312

1413
const FALLBACK_LOCALE = 'en';
1514

16-
export default class ApplicationRoute extends Route.extend(ApplicationRouteMixin) {
15+
export default class ApplicationRoute extends Route {
1716
@service account;
1817
@service ajax;
1918
@service cookies;
@@ -80,18 +79,6 @@ export default class ApplicationRoute extends Route.extend(ApplicationRouteMixin
8079
}
8180
}
8281

83-
sessionAuthenticated() {
84-
const attemptedTransition = this.get('session.attemptedTransition');
85-
const inLoginRoute = this.controllerFor('application').get('inLoginRoute');
86-
87-
if (attemptedTransition) {
88-
attemptedTransition.retry();
89-
this.set('session.attemptedTransition', null);
90-
} else if (inLoginRoute) {
91-
this.transitionTo('index');
92-
}
93-
}
94-
9582
@action
9683
loading(transition) {
9784
this.progress.handle(transition);

0 commit comments

Comments
 (0)