Skip to content

Commit a46650d

Browse files
committed
Use Title Case in context menu options (match OS norms)
1 parent 8e324ee commit a46650d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/view/view-context-menu-builder.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ViewEventContextMenuBuilder {
3030
private readonly BaseOptions = {
3131
Pin: {
3232
type: 'option',
33-
label: 'Toggle pinning',
33+
label: 'Toggle Pinning',
3434
callback: this.onPin
3535
},
3636
Delete: {
@@ -53,7 +53,7 @@ export class ViewEventContextMenuBuilder {
5353
this.BaseOptions.Pin,
5454
{
5555
type: 'option',
56-
label: 'Copy request URL',
56+
label: 'Copy Request URL',
5757
callback: (data: HttpExchange) => copyToClipboard(data.request.url)
5858
},
5959
this.BaseOptions.Delete,
@@ -64,19 +64,19 @@ export class ViewEventContextMenuBuilder {
6464
{
6565
type: 'option',
6666
enabled: isPaidUser,
67-
label: `Create matching mock rule`,
67+
label: `Create Matching Mock Rule`,
6868
callback: this.onBuildRuleFromExchange
6969
},
7070
{
7171
type: 'option',
7272
enabled: isPaidUser,
73-
label: `Export exchange as HAR`,
73+
label: `Export Exchange as HAR`,
7474
callback: exportHar
7575
},
7676
// If you have a preferred default format, we show that option at the top level:
7777
...(preferredExportFormat && isPaidUser ? [{
7878
type: 'option',
79-
label: `Copy as ${getCodeSnippetFormatName(preferredExportFormat)} snippet`,
79+
label: `Copy as ${getCodeSnippetFormatName(preferredExportFormat)} Snippet`,
8080
callback: (data: HttpExchange) =>
8181
copyToClipboard(
8282
generateCodeSnippet(data, preferredExportFormat)
@@ -85,7 +85,7 @@ export class ViewEventContextMenuBuilder {
8585
{
8686
type: 'submenu',
8787
enabled: isPaidUser,
88-
label: `Copy as code snippet`,
88+
label: `Copy as Code Snippet`,
8989
items: Object.keys(snippetExportOptions).map((snippetGroupName) => ({
9090
type: 'submenu',
9191
label: snippetGroupName,

0 commit comments

Comments
 (0)