| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2017 The LUCI Authors. All rights reserved. | 2 Copyright 2017 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 The `auth-signin` element displays sign-in/sign-out button, user email and | 6 The `auth-signin` element displays sign-in/sign-out button, user email and |
| 7 avatar. | 7 avatar. |
| 8 It has a google-signin/google-signin-aware element under the hood that handles | 8 It has a google-signin/google-signin-aware element under the hood that handles |
| 9 the actual OAuth logic. | 9 the actual OAuth logic. |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 observer: '_makeHeader' | 84 observer: '_makeHeader' |
| 85 }, | 85 }, |
| 86 | 86 |
| 87 client_id: { | 87 client_id: { |
| 88 type: String | 88 type: String |
| 89 }, | 89 }, |
| 90 | 90 |
| 91 initialized: { | 91 initialized: { |
| 92 type: Boolean, | 92 type: Boolean, |
| 93 value: false, | 93 value: false, |
| 94 notify: true, |
| 94 observer: '_onInitialized' | 95 observer: '_onInitialized' |
| 95 }, | 96 }, |
| 96 | 97 |
| 97 profile: { | 98 profile: { |
| 98 type: Object, | 99 type: Object, |
| 99 notify: true | 100 notify: true |
| 100 }, | 101 }, |
| 101 | 102 |
| 102 signed_in: { | 103 signed_in: { |
| 103 type: Boolean, | 104 type: Boolean, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 this.$.aware.signIn(); | 169 this.$.aware.signIn(); |
| 169 }, | 170 }, |
| 170 | 171 |
| 171 signOut: function() { | 172 signOut: function() { |
| 172 this.$.aware.signOut(); | 173 this.$.aware.signOut(); |
| 173 window.location.reload(); | 174 window.location.reload(); |
| 174 } | 175 } |
| 175 }); | 176 }); |
| 176 </script> | 177 </script> |
| 177 </dom-module> | 178 </dom-module> |
| OLD | NEW |