File tree 4 files changed +16
-4
lines changed
public/components/datasources/components/manage/accelerations
create_accelerations_flyout/create
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " observabilityDashboards" ,
3
- "version" : " 2.13 .0.0" ,
4
- "opensearchDashboardsVersion" : " 2.13 .0" ,
3
+ "version" : " 3.0 .0.0" ,
4
+ "opensearchDashboardsVersion" : " 3.0 .0" ,
5
5
"server" : true ,
6
6
"ui" : true ,
7
7
"requiredPlugins" : [
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " observability-dashboards" ,
3
- "version" : " 2.13 .0.0" ,
3
+ "version" : " 3.0 .0.0" ,
4
4
"main" : " index.ts" ,
5
5
"license" : " Apache-2.0" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ import { useDirectQuery } from '../../../../../../../framework/datasources/direc
15
15
import { useToast } from '../../../../../../common/toast' ;
16
16
import { accelerationQueryBuilder } from '../visual_editors/query_builder' ;
17
17
import { formValidator , hasError } from './utils' ;
18
+ import {
19
+ ACC_CREATE_SUBMIT_SUCCESS_MSG ,
20
+ ACC_CREATE_SUBMIT_FAIL_MSG ,
21
+ } from '../../utils/acceleration_utils' ;
18
22
19
23
interface CreateAccelerationButtonProps {
20
24
accelerationFormData : CreateAccelerationForm ;
@@ -54,7 +58,7 @@ export const CreateAccelerationButton = ({
54
58
const status = directqueryLoadStatus . toLowerCase ( ) ;
55
59
if ( status === DirectQueryLoadingStatus . SUCCESS ) {
56
60
setIsLoading ( false ) ;
57
- setToast ( 'Create acceleration query submitted successfully!' , 'success' ) ;
61
+ setToast ( ACC_CREATE_SUBMIT_SUCCESS_MSG , 'success' ) ;
58
62
if ( refreshHandler ) refreshHandler ( ) ;
59
63
resetFlyout ( ) ;
60
64
} else if (
Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ export const ACC_SYNC_MSG = i18n.translate('accelerationActionOverlay.sync.descr
38
38
defaultMessage : 'Syncing data may require querying all data. Do you want to continue?' ,
39
39
} ) ;
40
40
41
+ export const ACC_CREATE_SUBMIT_SUCCESS_MSG = i18n . translate ( 'acceleration.create.submitSuccess' , {
42
+ defaultMessage : 'Create acceleration query submitted successfully!' ,
43
+ } ) ;
44
+
45
+ export const ACC_CREATE_SUBMIT_FAIL_MSG = i18n . translate ( 'acceleration.create.submitFail' , {
46
+ defaultMessage : 'Create acceleration query failed' ,
47
+ } ) ;
48
+
41
49
export const ACC_TABLE_ACTION_DESC = {
42
50
discoverAction : i18n . translate ( 'accelerationTable.actions.discover' , {
43
51
defaultMessage : 'Open in Discover' ,
You can’t perform that action at this time.
0 commit comments