Commit 4ade1038 authored by michaelpg's avatar michaelpg Committed by Commit bot

MD Settings: more useful bug filing link

Include normal user-reported bug template and version number in link
to file bug in MD Settings appeal banner.

Result looks like crbug.com/628951.

BUG=none
R=dbeam@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2155063003
Cr-Commit-Position: refs/heads/master@{#406073}
parent 3c8546cb
......@@ -136,7 +136,7 @@
<div id="appeal" hidden="[[appealClosed_]]">
<span id="request">
<h1>Please read: A personal appeal from the Chrome settings team.</h1>
<a href="https://goo.gl/btju6c">Please file bugs</a>
<a href="[[appealBugUrl_]]">Please file bugs</a>
before you
<a href="chrome://settings-frame">go back to the old settings</a>.
</span>
......
......@@ -32,6 +32,27 @@ Polymer({
return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
},
},
/** @private */
appealBugUrl_: {
type: String,
value: function() {
var url =
'https://bugs.chromium.org/p/chromium/issues/entry?' +
'labels=Proj-MaterialDesign-WebUI,Pri-2,Type-Bug&' +
'components=UI%3ESettings&description=';
var description =
'What steps will reproduce the problem?\n' +
'(1) \n(2) \n(3) \n\nWhat is the expected result?\n\n\n' +
'What happens instead?\n\n\nPlease provide any additional ' +
'information below. Attach a screenshot if possible.\n\n';
var version = navigator.userAgent.match(/Chrom(?:e|ium)\/([\d.]+)/);
if (version)
description += 'Version: ' + version[1];
url += encodeURIComponent(description);
return url;
},
},
},
listeners: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment