OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 // This Polymer element is used as a container for all the feedback | 5 // This Polymer element is used as a container for all the feedback |
6 // elements. Based on a number of factors, it determines which elements | 6 // elements. Based on a number of factors, it determines which elements |
7 // to show and what will be submitted to the feedback servers. | 7 // to show and what will be submitted to the feedback servers. |
8 Polymer({ | 8 Polymer({ |
9 is: 'feedback-container', | 9 is: 'feedback-container', |
10 | 10 |
11 behaviors: [ | |
12 I18nBehavior, | |
13 ], | |
14 | |
15 properties: { | |
16 /** | |
17 * The user's email, if available. | |
18 * @type {string|undefined} | |
19 */ | |
20 email: { | |
21 type: String, | |
22 }, | |
23 | |
24 /** | |
25 * The URL of the page the user was on before sending feedback. | |
26 * @type {string|undefined} | |
27 */ | |
28 url: { | |
29 type: String, | |
30 }, | |
31 }, | |
32 | |
11 /** | 33 /** |
12 * Retrieves the feedback privacy note text, if it exists. On non-officially | 34 * Retrieves the feedback privacy note text, if it exists. On non-officially |
13 * branded builds, the string is not defined. | 35 * branded builds, the string is not defined. |
14 * | 36 * |
15 * @return {string} Privacy note text. | 37 * @return {string} Privacy note text. |
16 */ | 38 */ |
17 getPrivacyNote_: function() { | 39 getPrivacyNote_: function() { |
18 return loadTimeData.valueExists('privacyNote') ? | 40 return loadTimeData.valueExists('privacyNote') ? |
19 this.i18n('privacyNote') : ''; | 41 this.i18n('privacyNote') : ''; |
afakhry
2016/08/11 23:31:31
I found a way to fix this <strong></strong> not be
apacible
2016/09/10 07:47:00
Done.
| |
20 }, | 42 }, |
21 }); | 43 }); |
OLD | NEW |