Skip to content

Commit 7edae4b

Browse files
committed
[Dashboard] Sample data link does not work
Closes #74812
1 parent 198806b commit 7edae4b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/plugins/dashboard/public/application/listing/__snapshots__/dashboard_listing.test.js.snap

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/dashboard/public/application/listing/dashboard_listing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class DashboardListing extends React.Component {
115115
sampleDataInstallLink: (
116116
<EuiLink
117117
onClick={() =>
118-
this.props.core.application.navigateTo('home', {
118+
this.props.core.application.navigateToApp('home', {
119119
path: '#/tutorial_directory/sampleData',
120120
})
121121
}

src/plugins/dashboard/public/application/listing/dashboard_listing.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ describe('after fetch', () => {
7979
getViewUrl={() => {}}
8080
listingLimit={1000}
8181
hideWriteControls={false}
82+
initialPageSize={10}
8283
initialFilter="my dashboard"
8384
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
8485
/>
@@ -101,6 +102,7 @@ describe('after fetch', () => {
101102
editItem={() => {}}
102103
getViewUrl={() => {}}
103104
listingLimit={1000}
105+
initialPageSize={10}
104106
hideWriteControls={false}
105107
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
106108
/>
@@ -123,6 +125,7 @@ describe('after fetch', () => {
123125
editItem={() => {}}
124126
getViewUrl={() => {}}
125127
listingLimit={1}
128+
initialPageSize={10}
126129
hideWriteControls={false}
127130
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
128131
/>
@@ -145,6 +148,7 @@ describe('after fetch', () => {
145148
editItem={() => {}}
146149
getViewUrl={() => {}}
147150
listingLimit={1}
151+
initialPageSize={10}
148152
hideWriteControls={true}
149153
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
150154
/>
@@ -167,6 +171,7 @@ describe('after fetch', () => {
167171
editItem={() => {}}
168172
getViewUrl={() => {}}
169173
listingLimit={1}
174+
initialPageSize={10}
170175
hideWriteControls={false}
171176
core={{ notifications: { toasts: {} }, uiSettings: { get: jest.fn(() => 10) } }}
172177
/>

0 commit comments

Comments
 (0)