Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Adds 'Report an Issue' menu option #834

Merged
merged 3 commits into from
Feb 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/app/views/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Dialog,
DialogFooter,
DialogType,
DropdownMenuItemType,
getId,
IconButton,
Label,
Expand Down Expand Up @@ -54,6 +55,20 @@ function Settings(props: ISettingsProps) {
},
onClick: () => trackOfficeDevProgramLinkClickEvent(),
},
{
key: 'report-issue',
text: messages['Report an Issue'],
href: 'https://github.com/microsoftgraph/microsoft-graph-explorer-v4/issues/new/choose',
target: '_blank',
iconProps: {
iconName: 'ReportWarning',
},
},
{
key: 'divider',
text: '-',
itemType: DropdownMenuItemType.Divider
},
{
key: 'change-theme',
text: messages['Change theme'],
Expand Down Expand Up @@ -81,7 +96,7 @@ function Settings(props: ISettingsProps) {
iconName: 'SignOut',
},
onClick: () => handleSignOut(),
}
},
);
}
setItems(menuItems);
Expand Down
3 changes: 2 additions & 1 deletion src/messages/GE.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,5 +343,6 @@
"Get started with adaptive cards on": "Get started with adaptive cards on",
"Adaptive Cards Templating SDK": "Adaptive Cards Templating SDK",
"card": "Card",
"JSON Schema": "JSON Schema"
"JSON Schema": "JSON Schema",
"Report an Issue": "Report an Issue"
}