CEC-4693 - Generate EU certificates for aftersales (#389)
* CEC-4543 - Add location to digital twin map * remember previous deployment tab * different name * CEC-4693 - Generate EU certificates for aftersales
This commit is contained in:
@@ -8206,6 +8206,57 @@ exports[`App Route /tools/certificates/add authenticated 1`] = `
|
|||||||
Aftersales
|
Aftersales
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
|
<label
|
||||||
|
class="MuiFormControlLabel-root"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-disabled="false"
|
||||||
|
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-0 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="MuiIconButton-label"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
class="PrivateSwitchBase-input-0"
|
||||||
|
name="cert-type"
|
||||||
|
type="radio"
|
||||||
|
value="AftersalesEU"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="PrivateRadioButtonIcon-root-0"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
class="MuiSvgIcon-root"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-0"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
class="MuiTouchRipple-root"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
|
>
|
||||||
|
Aftersales EU
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-submit-0 MuiButton-containedPrimary MuiButton-fullWidth"
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-submit-0 MuiButton-containedPrimary MuiButton-fullWidth"
|
||||||
|
|||||||
@@ -45,10 +45,19 @@ const CreateForm = ({ onCreate, busy }) => {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
if (onCreate)
|
if (onCreate)
|
||||||
onCreate({
|
if (certType === CertTypes.AftersalesEU) {
|
||||||
common_name: commonName,
|
onCreate({
|
||||||
type: certType,
|
common_name: commonName,
|
||||||
});
|
type: CertTypes.Aftersales,
|
||||||
|
is_eu: true,
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
onCreate({
|
||||||
|
common_name: commonName,
|
||||||
|
type: certType,
|
||||||
|
is_eu: false,
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onCertTypeChange = (event) => {
|
const onCertTypeChange = (event) => {
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ export const CertTypes = {
|
|||||||
TBOX: "TBOX",
|
TBOX: "TBOX",
|
||||||
Charging: "Charging",
|
Charging: "Charging",
|
||||||
Aftersales: "Aftersales",
|
Aftersales: "Aftersales",
|
||||||
|
AftersalesEU: "AftersalesEU",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CertTypeData = [
|
export const CertTypeData = [
|
||||||
@@ -20,4 +21,9 @@ export const CertTypeData = [
|
|||||||
label: "Aftersales",
|
label: "Aftersales",
|
||||||
inputlabel: "Service Tool ID",
|
inputlabel: "Service Tool ID",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: CertTypes.AftersalesEU,
|
||||||
|
label: "Aftersales EU",
|
||||||
|
inputlabel: "Service Tool ID",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user