Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 2155063003: MD Settings: more useful bug filing link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 observer: 'directionDelegateChanged_', 25 observer: 'directionDelegateChanged_',
26 type: Object, 26 type: Object,
27 }, 27 },
28 28
29 appealClosed_: { 29 appealClosed_: {
30 type: Boolean, 30 type: Boolean,
31 value: function() { 31 value: function() {
32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
33 }, 33 },
34 }, 34 },
35
36 /** @private */
37 appealBugUrl_: {
38 type: String,
39 value: function() {
40 var url =
41 'https://bugs.chromium.org/p/chromium/issues/entry?' +
42 'labels=Proj-MaterialDesign-WebUI,Pri-2,Type-Bug&' +
43 'components=UI%3ESettings&description=';
44 var description =
45 'What steps will reproduce the problem?\n' +
46 '(1) \n(2) \n(3) \n\nWhat is the expected result?\n\n\n' +
47 'What happens instead?\n\n\nPlease provide any additional ' +
48 'information below. Attach a screenshot if possible.\n\n';
49 var version = navigator.userAgent.match(/Chrom(?:e|ium)\/([\d.]+)/);
50 if (version)
51 description += 'Version: ' + version[1];
52 url += encodeURIComponent(description);
53 return url;
54 },
55 },
35 }, 56 },
36 57
37 listeners: { 58 listeners: {
38 'sideNav.iron-activate': 'onIronActivate_', 59 'sideNav.iron-activate': 'onIronActivate_',
39 }, 60 },
40 61
41 /** @private */ 62 /** @private */
42 onCloseAppealTap_: function() { 63 onCloseAppealTap_: function() {
43 sessionStorage.appealClosed_ = this.appealClosed_ = true; 64 sessionStorage.appealClosed_ = this.appealClosed_ = true;
44 }, 65 },
(...skipping 18 matching lines...) Expand all
63 this.$$('settings-main').searchContents(e.detail); 84 this.$$('settings-main').searchContents(e.detail);
64 }.bind(this)); 85 }.bind(this));
65 }, 86 },
66 87
67 /** @private */ 88 /** @private */
68 directionDelegateChanged_: function() { 89 directionDelegateChanged_: function() {
69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 90 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
70 'right' : 'left'; 91 'right' : 'left';
71 }, 92 },
72 }); 93 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698