OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 Polymer({ |
| 6 is: 'saml-interstitial', |
| 7 |
| 8 properties: { |
| 9 domain: { |
| 10 type: String, |
| 11 observer: 'onDomainChanged_' |
| 12 }, |
| 13 |
| 14 showDomainMessages_: { |
| 15 type: Boolean, |
| 16 value: false |
| 17 }, |
| 18 }, |
| 19 onDomainChanged_: function() { |
| 20 this.$.message.content = |
| 21 loadTimeData.getStringF('samlInterstitialMessage', this.domain); |
| 22 this.showDomainMessages_ = !!this.domain.length; |
| 23 }, |
| 24 onSamlPageNextClicked_: function() { |
| 25 this.fire('samlPageNextClicked'); |
| 26 }, |
| 27 onSamlPageChangeAccountClicked_: function() { |
| 28 this.fire('samlPageChangeAccountClicked'); |
| 29 }, |
| 30 }); |
OLD | NEW |