Skip to content

Commit

Permalink
simple-auth: Remove obsolete ApplicationRouteMixin mixin usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Feb 7, 2021
1 parent f70c667 commit 9931bf9
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions ember/app/routes/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import Ember from 'ember';
import RSVP from 'rsvp';

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

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

const FALLBACK_LOCALE = 'en';

export default class ApplicationRoute extends Route.extend(ApplicationRouteMixin) {
export default class ApplicationRoute extends Route {
@service account;
@service ajax;
@service cookies;
Expand Down Expand Up @@ -80,18 +79,6 @@ export default class ApplicationRoute extends Route.extend(ApplicationRouteMixin
}
}

sessionAuthenticated() {
const attemptedTransition = this.get('session.attemptedTransition');
const inLoginRoute = this.controllerFor('application').get('inLoginRoute');

if (attemptedTransition) {
attemptedTransition.retry();
this.set('session.attemptedTransition', null);
} else if (inLoginRoute) {
this.transitionTo('index');
}
}

@action
loading(transition) {
this.progress.handle(transition);
Expand Down

0 comments on commit 9931bf9

Please sign in to comment.