File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ type UIDescription = {
2424 inputProps : React . HTMLProps < HTMLInputElement >
2525 } >
2626}
27+
28+ type OperationResult = {
29+ ToastMassge ?: string
30+ }
31+
2732const useStyles = makeStyles ( ( ) =>
2833 createStyles ( {
2934 form : {
@@ -87,14 +92,16 @@ export function OperationsDialog(props: OperationsDialogProps) {
8792 } )
8893
8994 try {
90- await repository . executeAction < any , UIDescription > ( {
95+ const result = await repository . executeAction < any , OperationResult > ( {
9196 method : 'POST' ,
9297 idOrPath : props . content . Path ,
9398 name : props . OperationName ,
9499 body : formJson ,
95100 } )
96101
97- logger . information ( { message : localization . success } )
102+ const success = result ?. ToastMassge || ''
103+
104+ logger . information ( { message : `${ localization . success } ${ success } ` } )
98105
99106 closeLastDialog ( )
100107 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ const values = {
689689 title : 'Action Framkework Demo' ,
690690 submit : 'Upload' ,
691691 cancel : 'Cancel' ,
692- success : 'Succesfull Operation! ' ,
692+ success : 'Succesfull Operation: ' ,
693693 } ,
694694}
695695
You can’t perform that action at this time.
0 commit comments