Skip to content

Commit

Permalink
Add noValueMessage prop to description fields across multiple components
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Dec 23, 2024
1 parent eee787b commit 09e997c
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions AdminDashboard/src/Pages/Settings/Probes/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ const Settings: FunctionComponent = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const CustomCallSMSTable: FunctionComponent = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
2 changes: 2 additions & 0 deletions Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ const CustomSMTPTable: FunctionComponent = (): ReactElement => {
field: {
description: true,
},

title: "Description",
noValueMessage: "-",
type: FieldType.Text,
},
{
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/AICopilot/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const CodeRepositoryPage: FunctionComponent<
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Dashboards/Dashboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const Dashboards: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/OnCallDuty/OnCallDutyPolicies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const OnCallDutyPage: FunctionComponent<
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const OnCallPolicyDelete: FunctionComponent<PageComponentProps> = (
field: {
description: true,
},

noValueMessage: "-",
title: "Description",
description: "The description of the escalation rule.",
type: FieldType.Text,
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/OnCallDuty/OnCallDutySchedules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const OnCallDutyPage: FunctionComponent<
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/ServiceCatalog/ServiceCatalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const ServiceCatalogPage: FunctionComponent<
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Settings/APIKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const APIKeys: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Settings/Base/CustomFieldsPageBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ const CustomFieldsPageBase: (
field: {
description: true,
},
noValueMessage: "-",
title: "Field Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Settings/Labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const Labels: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Settings/Teams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const Teams: FunctionComponent<PageComponentProps> = (
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Settings/TelemetryIngestionKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const APIKeys: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/StatusPages/StatusPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ const StatusPages: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Workflow/Variable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const Workflows: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down
1 change: 1 addition & 0 deletions Dashboard/src/Pages/Workflow/View/Variable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const Workflows: FunctionComponent<PageComponentProps> = (): ReactElement => {
field: {
description: true,
},
noValueMessage: "-",
title: "Description",
type: FieldType.Text,
},
Expand Down

0 comments on commit 09e997c

Please sign in to comment.