fix: changed notice always display
This commit is contained in:
@@ -5,6 +5,8 @@ export default (api: IApi) => {
|
|||||||
const info = JSON.parse(process.env.VERSION || '{}');
|
const info = JSON.parse(process.env.VERSION || '{}');
|
||||||
const env = process.env.NODE_ENV;
|
const env = process.env.NODE_ENV;
|
||||||
|
|
||||||
|
$('html').attr('lang', 'en');
|
||||||
|
|
||||||
$('html').attr('data-env', env);
|
$('html').attr('data-env', env);
|
||||||
|
|
||||||
$('html').attr(
|
$('html').attr(
|
||||||
|
|||||||
@@ -263,10 +263,6 @@ const ClusterForm: React.FC<AddModalProps> = forwardRef(
|
|||||||
<Form.Item<FormData>
|
<Form.Item<FormData>
|
||||||
name="description"
|
name="description"
|
||||||
rules={[{ required: false }]}
|
rules={[{ required: false }]}
|
||||||
// For Kubernetes the cluster type selector follows directly, so
|
|
||||||
// fall back to the default item margin (matching the name field)
|
|
||||||
// to keep the description spacing symmetric; other providers keep
|
|
||||||
// the tighter gap before the advanced panel.
|
|
||||||
style={{
|
style={{
|
||||||
marginBottom:
|
marginBottom:
|
||||||
provider === ProviderValueMap.Kubernetes ? undefined : 8
|
provider === ProviderValueMap.Kubernetes ? undefined : 8
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ export const OperatorImageForm: React.FC = () => {
|
|||||||
<SectionWrap>
|
<SectionWrap>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name={['k8s_options', 'operatorImage']}
|
name={['k8s_options', 'operatorImage']}
|
||||||
style={{ marginBottom: 0 }}
|
|
||||||
normalize={(value) => value || null}
|
normalize={(value) => value || null}
|
||||||
>
|
>
|
||||||
<CInput.Input
|
<CInput.Input
|
||||||
@@ -299,7 +298,7 @@ const cleanK8sOptions = (opts: any) => {
|
|||||||
({ sourceType, ...rest }: any) => rest
|
({ sourceType, ...rest }: any) => rest
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return cloned;
|
return _.pickBy(cloned, (value: any) => !_.isNil(value));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Custom comparator for isEqualWith: treats null, undefined, empty strings,
|
// Custom comparator for isEqualWith: treats null, undefined, empty strings,
|
||||||
@@ -312,7 +311,8 @@ const nullishCustomizer = (val1: any, val2: any) => {
|
|||||||
(val1 == null && val2 === '') ||
|
(val1 == null && val2 === '') ||
|
||||||
(val1 === '' && val2 == null) ||
|
(val1 === '' && val2 == null) ||
|
||||||
(_.isEmpty(val1) && val2 == null) ||
|
(_.isEmpty(val1) && val2 == null) ||
|
||||||
(val1 == null && _.isEmpty(val2))
|
(val1 == null && _.isEmpty(val2)) ||
|
||||||
|
(_.isNil(val1) && _.isNil(val2))
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ const ClusterAdvanceConfig: React.FC<{
|
|||||||
this column). */}
|
this column). */}
|
||||||
<Form.Item<FormData>
|
<Form.Item<FormData>
|
||||||
name="system_default_container_registry"
|
name="system_default_container_registry"
|
||||||
style={{ marginBottom: 16 }}
|
|
||||||
normalize={(value) => value?.trim?.() || null}
|
normalize={(value) => value?.trim?.() || null}
|
||||||
>
|
>
|
||||||
<CInput.Input
|
<CInput.Input
|
||||||
|
|||||||
Reference in New Issue
Block a user