Merge pull request #1845 from influxdata/feat/streaming-new-source-button
Add functionality to add new source button to go back to streaming so…pull/10616/head
commit
051c6c276c
|
@ -27,6 +27,7 @@ interface Props {
|
|||
notify: NotificationAction
|
||||
onTabClick: (tabID: string) => void
|
||||
currentStepIndex: number
|
||||
handleNewSourceClick: () => void
|
||||
}
|
||||
|
||||
const configStateToTabStatus = (cs: ConfigurationState): TabStatus => {
|
||||
|
@ -70,6 +71,7 @@ class OnboardingSideBar extends Component<Props> {
|
|||
}
|
||||
|
||||
private get buttons(): JSX.Element[] {
|
||||
const {handleNewSourceClick} = this.props
|
||||
return [
|
||||
<SideBar.Button
|
||||
key="Download Config File"
|
||||
|
@ -85,6 +87,7 @@ class OnboardingSideBar extends Component<Props> {
|
|||
titleText="Add New Source"
|
||||
color={ComponentColor.Default}
|
||||
icon={IconFont.Plus}
|
||||
onClick={handleNewSourceClick}
|
||||
/>,
|
||||
]
|
||||
}
|
||||
|
|
|
@ -121,6 +121,7 @@ class OnboardingWizard extends PureComponent<Props> {
|
|||
onSaveTelegrafConfig,
|
||||
setupParams,
|
||||
notify,
|
||||
onDecrementCurrentStepIndex,
|
||||
} = this.props
|
||||
|
||||
return (
|
||||
|
@ -135,6 +136,7 @@ class OnboardingWizard extends PureComponent<Props> {
|
|||
title="Selected Sources"
|
||||
visible={this.sideBarVisible}
|
||||
currentStepIndex={currentStepIndex}
|
||||
handleNewSourceClick={onDecrementCurrentStepIndex}
|
||||
/>
|
||||
<div className="wizard-step--container">
|
||||
<OnboardingStepSwitcher
|
||||
|
|
Loading…
Reference in New Issue