File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,18 @@ const modal = ({
49
49
< ModalBlur { ...modalOpts } >
50
50
< Form layout = "horizontal" >
51
51
< FormItem label = "Backup" { ...formItemLayout } >
52
- { getFieldDecorator ( 'backup' , { initialValue : item . name || '' } ) ( < Input disabled = { ! ! item . name } /> ) }
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 } /> ) }
52
+ { getFieldDecorator ( 'backup' , { initialValue : item . name || '' } ) ( < Input disabled /> ) }
59
53
</ 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