import Ember from 'ember';

import OsfAgnosticAuthControllerMixin from 'ember-osf/mixins/osf-agnostic-auth-controller';

import {
    getAuthUrl
} from 'ember-osf/utils/auth';

export default Ember.Controller.extend(OsfAgnosticAuthControllerMixin,{
    toast: Ember.inject.service(),
    authUrl: getAuthUrl(),
    actions: {
        loginSuccess() {
           // this.transitionToRoute('researcher.grant');
        },
        loginFail(/* err */) {
            this.get('toast').error('Login failed');
        },
        transitionToHome(){
            debugger;
            this.transitionToRoute('dashboards.dashboard', 'institution', {
                queryParams: {all : 'ucsd'}
            });
        }
    }
});

import Ember from 'ember';

import OsfAgnosticAuthControllerMixin from 'ember-osf/mixins/osf-agnostic-auth-controller';

import {
    getAuthUrl
} from 'ember-osf/utils/auth';

export default Ember.Controller.extend(OsfAgnosticAuthControllerMixin,{
    toast: Ember.inject.service(),
    authUrl: getAuthUrl(),
    actions: {
        loginSuccess() {
           // this.transitionToRoute('researcher.grant');
        },
        loginFail(/* err */) {
            this.get('toast').error('Login failed');
        },
        transitionToHome(){
            this.transitionToRoute('dashboards.dashboard', 'institution');
        }
    }
});

Fix app title link not working with ‘source’ query paremeter
Fix app title link not working with ‘source’ query paremeter
