Commit ac7df080 authored by Yang Guo's avatar Yang Guo Committed by Commit Bot

DevTools: add link to file DevTools issue

R=luoe@chromium.org

Change-Id: Ib6a5ad8ab65d44e7068645b455b786b948324a50
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768431
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: default avatarErik Luo <luoe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#691039}
parent 7177162f
......@@ -81,5 +81,21 @@ Help.ReleaseNotesActionDelegate = class {
}
};
/**
* @implements {UI.ActionDelegate}
*/
Help.ReportIssueActionDelegate = class {
/**
* @override
* @param {!UI.Context} context
* @param {string} actionId
* @return {boolean}
*/
handleAction(context, actionId) {
InspectorFrontendHost.openInNewTab('https://bugs.chromium.org/p/chromium/issues/entry?template=DevTools+issue');
return true;
}
};
/** @type {!Common.Setting} */
Help._releaseNoteVersionSetting = Common.settings.createSetting('releaseNoteVersionSeen', 0);
<?xml version="1.0" encoding="utf-8"?>
<grit-part>
<message name="IDS_DEVTOOLS_8381815d48c2d49f31dce1807ae0507c" desc="Title of an action in the help tool to file an issue">
Report a DevTools issue
</message>
<message name="IDS_DEVTOOLS_7d0ee6fed10d3d4e5c9ee496729ab519" desc="Title of an action in the help tool to release notes">
Release notes
</message>
......@@ -15,4 +18,4 @@
<message name="IDS_DEVTOOLS_a1c58e94227389415de133efdf78ea6e" desc="A title of the 'Appearance' setting category">
Appearance
</message>
</grit-part>
\ No newline at end of file
</grit-part>
......@@ -40,6 +40,20 @@
"actionId": "help.release-notes",
"order": 10
},
{
"type": "action",
"category": "Help",
"actionId": "help.report-issue",
"title": "Report a DevTools issue",
"className": "Help.ReportIssueActionDelegate",
"tags": "bug"
},
{
"type": "context-menu-item",
"location": "mainMenuHelp/default",
"actionId": "help.report-issue",
"order": 11
},
{
"type": "late-initialization",
"className": "Help.HelpLateInitialization"
......
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