[Search] Fix timeout upgrade link (#79045)

This commit is contained in:
Lukas Olson 2020-10-01 11:56:50 -07:00 committed by GitHub
parent e08f6a38f6
commit a8e3c8ac78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -37,9 +37,9 @@ describe('SearchTimeoutError', () => {
expect(component.find('EuiButton').length).toBe(1); expect(component.find('EuiButton').length).toBe(1);
component.find('EuiButton').simulate('click'); component.find('EuiButton').simulate('click');
expect(startMock.application.navigateToApp).toHaveBeenCalledWith('management', { expect(startMock.application.navigateToUrl).toHaveBeenCalledWith(
path: '/kibana/indexPatterns', 'https://www.elastic.co/subscriptions'
}); );
}); });
it('Should create contact admin message', () => { it('Should create contact admin message', () => {

View file

@ -78,9 +78,7 @@ export class SearchTimeoutError extends KbnError {
private onClick(application: ApplicationStart) { private onClick(application: ApplicationStart) {
switch (this.mode) { switch (this.mode) {
case TimeoutErrorMode.UPGRADE: case TimeoutErrorMode.UPGRADE:
application.navigateToApp('management', { application.navigateToUrl('https://www.elastic.co/subscriptions');
path: `/kibana/indexPatterns`,
});
break; break;
case TimeoutErrorMode.CHANGE: case TimeoutErrorMode.CHANGE:
application.navigateToApp('management', { application.navigateToApp('management', {