We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657ebf8 commit f97a09bCopy full SHA for f97a09b
x-pack/plugins/infra/public/hooks/use_trial_status.tsx
@@ -5,6 +5,7 @@
5
*/
6
7
import { boolean } from 'io-ts';
8
+import { i18n } from '@kbn/i18n';
9
10
import { useState } from 'react';
11
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
@@ -31,6 +32,13 @@ export function useTrialStatus(): UseTrialStatusState {
31
32
onResolve: (response) => {
33
setIsTrialAvailable(response);
34
},
35
+ onReject: (error) => {
36
+ services.notifications.toasts.addDanger(
37
+ i18n.translate('xpack.infra.trialStatus.trialStatusNetworkErrorMessage', {
38
+ defaultMessage: 'We could not determine if the trial license is available',
39
+ })
40
+ );
41
+ },
42
43
[services]
44
);
0 commit comments