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:
Ildar Iskhakov 2023-05-05 17:52:45 +08:00 committed by GitHub
parent 41f7c23c65
commit a61b0d8b3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -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,
},
{

View file

@ -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;

View file

@ -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>