File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,16 @@ const modal = ({
51
51
< FormItem label = "Backup" { ...formItemLayout } >
52
52
{ getFieldDecorator ( 'backup' , { initialValue : item . name || '' } ) ( < Input disabled = { ! ! item . name } /> ) }
53
53
</ FormItem >
54
- < FormItem label = "Secret" hasFeedback { ...formItemLayout } >
55
- { getFieldDecorator ( 'secret' , { initialValue : item . secret || '' } ) ( < Input disabled = { ! ! item . secret } /> ) }
56
- </ FormItem >
57
- < FormItem label = "Secret Namespace" hasFeedback { ...formItemLayout } >
58
- { getFieldDecorator ( 'secretNamespace' , { initialValue : item . secretNamespace || '' } ) ( < Input disabled = { ! ! item . secretNamespace } /> ) }
59
- </ FormItem >
54
+ { item . secret && (
55
+ < FormItem label = "Secret" hasFeedback { ...formItemLayout } >
56
+ { getFieldDecorator ( 'secret' , { initialValue : item . secret } ) ( < Input disabled /> ) }
57
+ </ FormItem >
58
+ ) }
59
+ { item . secretNamespace && (
60
+ < FormItem label = "Secret Namespace" hasFeedback { ...formItemLayout } >
61
+ { getFieldDecorator ( 'secretNamespace' , { initialValue : item . secretNamespace } ) ( < Input disabled /> ) }
62
+ </ FormItem >
63
+ ) }
60
64
</ Form >
61
65
</ ModalBlur >
62
66
)
You can’t perform that action at this time.
0 commit comments