mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Search] Fix timeout upgrade link (#79045)
This commit is contained in:
parent
e08f6a38f6
commit
a8e3c8ac78
2 changed files with 4 additions and 6 deletions
|
@ -37,9 +37,9 @@ describe('SearchTimeoutError', () => {
|
|||
|
||||
expect(component.find('EuiButton').length).toBe(1);
|
||||
component.find('EuiButton').simulate('click');
|
||||
expect(startMock.application.navigateToApp).toHaveBeenCalledWith('management', {
|
||||
path: '/kibana/indexPatterns',
|
||||
});
|
||||
expect(startMock.application.navigateToUrl).toHaveBeenCalledWith(
|
||||
'https://www.elastic.co/subscriptions'
|
||||
);
|
||||
});
|
||||
|
||||
it('Should create contact admin message', () => {
|
||||
|
|
|
@ -78,9 +78,7 @@ export class SearchTimeoutError extends KbnError {
|
|||
private onClick(application: ApplicationStart) {
|
||||
switch (this.mode) {
|
||||
case TimeoutErrorMode.UPGRADE:
|
||||
application.navigateToApp('management', {
|
||||
path: `/kibana/indexPatterns`,
|
||||
});
|
||||
application.navigateToUrl('https://www.elastic.co/subscriptions');
|
||||
break;
|
||||
case TimeoutErrorMode.CHANGE:
|
||||
application.navigateToApp('management', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue