OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * 'settings-basic-page' is the settings page containing the basic settings. | 7 * 'settings-basic-page' is the settings page containing the basic settings. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
(...skipping 18 matching lines...) Expand all Loading... |
29 }, | 29 }, |
30 | 30 |
31 /** | 31 /** |
32 * The current active route. | 32 * The current active route. |
33 */ | 33 */ |
34 currentRoute: { | 34 currentRoute: { |
35 type: Object, | 35 type: Object, |
36 notify: true, | 36 notify: true, |
37 }, | 37 }, |
38 | 38 |
| 39 /** |
| 40 * True if the basic page should currently display the reset profile banner. |
| 41 * @private {boolean} |
| 42 */ |
39 showResetProfileBanner_: { | 43 showResetProfileBanner_: { |
40 type: Boolean, | 44 type: Boolean, |
41 value: loadTimeData.getBoolean('showResetProfileBanner'), | 45 value: function() { |
| 46 return loadTimeData.getBoolean('showResetProfileBanner'); |
| 47 }, |
42 }, | 48 }, |
43 | 49 |
44 }, | 50 }, |
45 | 51 |
46 onResetDone_: function() { | 52 onResetDone_: function() { |
47 this.showResetProfileBanner_ = false; | 53 this.showResetProfileBanner_ = false; |
48 }, | 54 }, |
49 | 55 |
50 behaviors: [SettingsPageVisibility], | 56 behaviors: [SettingsPageVisibility], |
51 }); | 57 }); |
OLD | NEW |