mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
24
client/app/account/index.js
Normal file
24
client/app/account/index.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'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;
|
Loading…
Add table
Add a link
Reference in a new issue