Use the correct description (#1883)
# What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
This commit is contained in:
parent
41f7c23c65
commit
a61b0d8b3d
3 changed files with 6 additions and 3 deletions
|
|
@ -4,12 +4,14 @@ export const form: { name: string; fields: FormItem[] } = {
|
|||
name: 'Integration',
|
||||
fields: [
|
||||
{
|
||||
label: 'Name',
|
||||
name: 'verbal_name',
|
||||
type: FormItemType.Input,
|
||||
validation: { required: true },
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
label: 'Description',
|
||||
name: 'description_short',
|
||||
type: FormItemType.TextArea,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ export interface AlertReceiveChannel {
|
|||
smile_code: string;
|
||||
verbal_name: string;
|
||||
description: string;
|
||||
description_short: string;
|
||||
author: User['pk'];
|
||||
team: GrafanaTeam['id'];
|
||||
created_at: string;
|
||||
|
|
|
|||
|
|
@ -201,9 +201,9 @@ class Integration2 extends React.Component<Integration2Props, Integration2State>
|
|||
</WithContextMenu>
|
||||
</div>
|
||||
</div>
|
||||
{alertReceiveChannel.description && (
|
||||
{alertReceiveChannel.description_short && (
|
||||
<Text type="secondary" className={cx('integration__description')}>
|
||||
{alertReceiveChannel.description}
|
||||
{alertReceiveChannel.description_short}
|
||||
</Text>
|
||||
)}
|
||||
<HorizontalGroup>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue