@@ -13,7 +13,7 @@ import serviceOrderStyles from '../../../../styles/service-order.module.css';
13
13
import {
14
14
csp ,
15
15
DeployedServiceDetails ,
16
- DeployVariable ,
16
+ InputVariable ,
17
17
modify ,
18
18
type ModifyData ,
19
19
ModifyRequest ,
@@ -40,14 +40,14 @@ export const Modify = ({
40
40
const [ form ] = Form . useForm ( ) ;
41
41
const { Paragraph } = Typography ;
42
42
let getParams : DeployParam [ ] = [ ] ;
43
- let getVariables : DeployVariable [ ] = [ ] ;
43
+ let getVariables : InputVariable [ ] = [ ] ;
44
44
45
45
const [ modifyWarning , setModifyWarning ] = useState < React . JSX . Element [ ] > ( [ ] ) ;
46
46
47
47
const [ isShowModifyingResult , setIsShowModifyingResult ] = useState < boolean > ( false ) ;
48
48
const [ modifyStatus , setModifyStatus ] = useState < serviceDeploymentState | undefined > ( undefined ) ;
49
49
const [ cacheFormVariable ] = useOrderFormStore ( ( state ) => [ state . addDeployVariable ] ) ;
50
- const [ storedDeployVariables ] = useOrderFormStore ( ( state ) => [ state . deployParams ] ) ;
50
+ const [ storedInputVariables ] = useOrderFormStore ( ( state ) => [ state . deployParams ] ) ;
51
51
52
52
const orderableServiceDetailsQuery = useGetOrderableServiceDetails ( currentSelectedService . serviceTemplateId ) ;
53
53
const modifyServiceRequest = useMutation ( {
@@ -67,13 +67,13 @@ export const Modify = ({
67
67
68
68
const hasVariableChanged : ( ) => boolean = ( ) => {
69
69
const prevParamsString = JSON . stringify ( getExistingServiceParameters ( currentSelectedService ) ) ;
70
- const newParamsString = JSON . stringify ( storedDeployVariables ) ;
70
+ const newParamsString = JSON . stringify ( storedInputVariables ) ;
71
71
return prevParamsString !== newParamsString ;
72
72
} ;
73
73
74
74
if ( orderableServiceDetailsQuery . isSuccess ) {
75
- getParams = getModifyParams ( orderableServiceDetailsQuery . data . variables ) ;
76
- getVariables = orderableServiceDetailsQuery . data . variables ;
75
+ getParams = getModifyParams ( orderableServiceDetailsQuery . data . inputVariables ) ;
76
+ getVariables = orderableServiceDetailsQuery . data . inputVariables ;
77
77
}
78
78
79
79
const onFinish = ( ) => {
@@ -124,7 +124,7 @@ export const Modify = ({
124
124
const onClickModify = ( ) => {
125
125
const modifiedKeys = getModifiedProperties (
126
126
getExistingServiceParameters ( currentSelectedService ) ,
127
- storedDeployVariables
127
+ storedInputVariables
128
128
) ;
129
129
if ( modifiedKeys . length > 0 ) {
130
130
const warnings : React . JSX . Element [ ] = [ ] ;
0 commit comments