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
Palakp41 2018-12-11 14:29:07 -08:00 committed by GitHub
commit 051c6c276c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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}
/>,
]
}

View File

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