mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-15 04:42:05 +00:00
24 lines
691 B
JavaScript
24 lines
691 B
JavaScript
'use strict';
|
|
|
|
import angular from 'angular';
|
|
|
|
import uiRouter from 'angular-ui-router';
|
|
|
|
import routing from './account.routes';
|
|
import login from './login';
|
|
import settings from './settings';
|
|
import signup from './signup';
|
|
import oauthButtons from '../../components/oauth-buttons';
|
|
|
|
export default angular.module('app2App.account', [uiRouter, login, settings, signup, oauthButtons])
|
|
.config(routing)
|
|
.run(function($rootScope) {
|
|
'ngInject';
|
|
|
|
$rootScope.$on('$stateChangeStart', function(event, next, nextParams, current) {
|
|
if(next.name === 'logout' && current && current.name && !current.authenticate) {
|
|
next.referrer = current.name;
|
|
}
|
|
});
|
|
})
|
|
.name;
|