Skip to content

Commit

Permalink
Merge branch '2.x' into backport/backport-244-to-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
riysaxen-amzn authored Sep 4, 2024
2 parents c5d8d8f + 42c28fd commit 6d9834d
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions public/pages/Channels/components/details/ChannelDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { ChannelDetailItems } from './ChannelDetailItems';
import { ChannelDetailsActions } from './ChannelDetailsActions';
import { ChannelSettingsDetails } from './ChannelSettingsDetails';
import PageHeader from "../../../../components/PageHeader/PageHeader";
import { TopNavControlButtonData } from '../../../../../../../src/plugins/navigation/public';

interface ChannelDetailsProps extends RouteComponentProps<{
id: string
Expand Down Expand Up @@ -191,19 +192,12 @@ export function ChannelDetails(props: ChannelDetailsProps) {
),
},
{
renderComponent: (
<div style={{ display: 'flex', alignItems: 'center' }}>
<EuiSmallButton
data-test-subj="send-test-message-button"
onClick={sendTestMessage}
style={{ marginLeft: '10px' }}
disabled={!channel?.is_enabled}
>
Send test message
</EuiSmallButton>
</div>
),
},
controlType: 'button',
testId: 'send-test-message-button',
isDisabled: !channel?.is_enabled,
run: sendTestMessage,
label: 'Send test message',
} as TopNavControlButtonData,
];

const badgeComponent = <EuiFlexItem grow={false} style={{ paddingBottom: 5 }}>
Expand Down

0 comments on commit 6d9834d

Please sign in to comment.