@@ -17,7 +17,7 @@ import MessageUI, { MsgUIType } from '../../../../common/message.ui'
17
17
import { AppType , ManifestActionPropsType , NodeType } from '../../../appDetails.type'
18
18
import YAML from 'yaml'
19
19
import { toast } from 'react-toastify'
20
- import { Checkbox , DeploymentAppTypes , showError , ToastBody } from '@devtron-labs/devtron-fe-common-lib'
20
+ import { Checkbox , CHECKBOX_VALUE , DeploymentAppTypes , showError , ToastBody } from '@devtron-labs/devtron-fe-common-lib'
21
21
import { appendRefetchDataToUrl } from '../../../../../util/URLUtil'
22
22
import {
23
23
EA_MANIFEST_SECRET_EDIT_MODE_INFO_TEXT ,
@@ -303,25 +303,25 @@ function ManifestComponent({
303
303
updateEditor ( _tab . name )
304
304
}
305
305
306
- const onChangeToggleShowDecodedValue = ( codeEditorData ) => {
306
+ const onChangeToggleShowDecodedValue = ( ) => {
307
307
setShowDecodedData ( ! showDecodedData )
308
- const jsonManifestData = YAML . parse ( codeEditorData )
308
+ const jsonManifestData = YAML . parse ( trimedManifestEditorData )
309
309
if ( ! showDecodedData ) {
310
310
setTrimedManifestEditorData ( getDecodedEncodedSecretManifestData ( jsonManifestData , true , showDecodedData ) as string )
311
311
} else {
312
- setTrimedManifestEditorData ( getDecodedEncodedSecretManifestData ( jsonManifestData , true , showDecodedData , true ) as string )
312
+ setTrimedManifestEditorData ( getDecodedEncodedSecretManifestData ( jsonManifestData , true , true ) as string )
313
313
}
314
314
}
315
315
316
- const renderShowDecodedValueCheckbox = ( codeEditorData ) => {
316
+ const renderShowDecodedValueCheckbox = ( ) => {
317
317
return (
318
318
< div className = "flex left ml-8" >
319
319
< Checkbox
320
320
rootClassName = "mb-0-imp h-18"
321
321
id = "showDecodedValue"
322
322
isChecked = { showDecodedData }
323
- onChange = { ( ) => onChangeToggleShowDecodedValue ( codeEditorData ) }
324
- value = " CHECKED"
323
+ onChange = { onChangeToggleShowDecodedValue }
324
+ value = { CHECKBOX_VALUE . CHECKED }
325
325
/>
326
326
Show decoded Value
327
327
</ div >
@@ -446,7 +446,9 @@ function ManifestComponent({
446
446
}
447
447
className = "flex left"
448
448
>
449
- { ! isEditmode && secretViewAccess && renderShowDecodedValueCheckbox ( trimedManifestEditorData ) }
449
+ { /* {!isEditmode && secretViewAccess && renderShowDecodedValueCheckbox()} */ }
450
+ { renderShowDecodedValueCheckbox ( ) }
451
+
450
452
</ CodeEditor . Information >
451
453
) }
452
454
{ activeTab === 'Compare' && (
0 commit comments