OLD | NEW |
1 'use strict'; | 1 'use strict'; |
2 | 2 |
3 var spinner; | 3 var spinner; |
4 | 4 |
5 /** | 5 /** |
6 * Provide the main App class, based on the YUI App framework. Also provide | 6 * Provide the main App class, based on the YUI App framework. Also provide |
7 * the routing definitions, which map the request paths to the top-level | 7 * the routing definitions, which map the request paths to the top-level |
8 * views defined by the App class. | 8 * views defined by the App class. |
9 * | 9 * |
10 * @module app | 10 * @module app |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 if (credentials) { | 700 if (credentials) { |
701 if (!credentials.areAvailable) { | 701 if (!credentials.areAvailable) { |
702 // If there are no stored credentials, the user is prompted for some. | 702 // If there are no stored credentials, the user is prompted for some. |
703 this.show_login(); | 703 this.show_login(); |
704 } else if (!this.env.userIsAuthenticated) { | 704 } else if (!this.env.userIsAuthenticated) { |
705 // If there are credentials available and there has not been | 705 // If there are credentials available and there has not been |
706 // a successful login attempt, try to log in. | 706 // a successful login attempt, try to log in. |
707 this.env.login(); | 707 this.env.login(); |
708 return; | 708 return; |
709 } | 709 } |
710 // After re-aranging the execution order of our routes to suppor the new | 710 // After re-arranging the execution order of our routes to support the new |
711 // :gui: namespace we were unable to log out on prod build in Ubuntu | 711 // :gui: namespace we were unable to log out on prod build in Ubuntu |
712 // chrome. It appeared to be because credentials was null so the log in | 712 // chrome. It appeared to be because credentials was null so the log in |
713 // form was never shown - this handles that edge case. | 713 // form was never shown - this handles that edge case. |
714 } else { | 714 } else { |
715 this.show_login(); | 715 this.show_login(); |
716 } | 716 } |
717 // If there has not been a successful login attempt and there are no | 717 // If there has not been a successful login attempt and there are no |
718 // credentials, do not let the route dispatch proceed. | 718 // credentials, do not let the route dispatch proceed. |
719 if (!this.env.userIsAuthenticated) { | 719 if (!this.env.userIsAuthenticated) { |
720 if (this.loggingOut) { | 720 if (this.loggingOut) { |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 'app-base', | 1056 'app-base', |
1057 'app-transitions', | 1057 'app-transitions', |
1058 'base', | 1058 'base', |
1059 'node', | 1059 'node', |
1060 'model', | 1060 'model', |
1061 'app-subapp-extension', | 1061 'app-subapp-extension', |
1062 'sub-app', | 1062 'sub-app', |
1063 'subapp-browser', | 1063 'subapp-browser', |
1064 'event-touch'] | 1064 'event-touch'] |
1065 }); | 1065 }); |
OLD | NEW |