Skip to content

Commit

Permalink
[BUG] Fix broken link in the Overview page (#314)
Browse files Browse the repository at this point in the history
The 'Try our sample data' link in the opensearch dashboards
overview page is broken. It has to be pointed to the path
`/app/home#/tutorial_directory/sampleData`. This commit fixes
this bug. The snapshots are updated accordingly.

Fixes #193

Signed-off-by: Venu Vardhan Reddy Tekula <[email protected]>
  • Loading branch information
vchrombie authored Apr 28, 2021
1 parent 4b73f88 commit 126c2b8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,22 @@ export const AddData: FC<Props> = ({ addBasePath, features }) => {
</EuiFlexItem>

<EuiFlexItem className="osdOverviewDataAdd__actions" grow={false}>
<div>
<EuiButtonEmpty
className="osdOverviewDataAdd__actionButton"
flush="left"
href={addBasePath('#/tutorial_directory/sampleData')}
iconType="visTable"
size="xs"
>
<FormattedMessage
id="opensearchDashboardsOverview.addData.sampleDataButtonLabel"
defaultMessage="Try our sample data"
/>
</EuiButtonEmpty>
</div>
<RedirectAppLinks application={application}>
<div>
<EuiButtonEmpty
className="osdOverviewDataAdd__actionButton"
flush="left"
href={addBasePath('/app/home#/tutorial_directory/sampleData')}
iconType="visTable"
size="xs"
>
<FormattedMessage
id="opensearchDashboardsOverview.addData.sampleDataButtonLabel"
defaultMessage="Try our sample data"
/>
</EuiButtonEmpty>
</div>
</RedirectAppLinks>
</EuiFlexItem>
</EuiFlexGroup>

Expand Down

0 comments on commit 126c2b8

Please sign in to comment.