Rename none option on idp step to Built In on Tenant Creation (#465)

This commit is contained in:
Cesar N
2020-12-03 12:15:41 -06:00
committed by GitHub
parent d15472f417
commit e5f7059a5e

View File

@@ -135,7 +135,7 @@ const AddTenant = ({
const [advancedMode, setAdvancedMode] = useState<boolean>(false);
const [enablePrometheus, setEnablePrometheus] = useState<boolean>(false);
const [consoleImage, setConsoleImage] = useState<string>("");
const [idpSelection, setIdpSelection] = useState<string>("none");
const [idpSelection, setIdpSelection] = useState<string>("Built-in");
const [openIDURL, setOpenIDURL] = useState<string>("");
const [openIDClientID, setOpenIDClientID] = useState<string>("");
const [openIDSecretID, setOpenIDSecretID] = useState<string>("");
@@ -433,7 +433,7 @@ const AddTenant = ({
useEffect(() => {
let customIDPValidation: IValidation[] = [];
if (idpSelection === "none") {
if (idpSelection === "Built-in") {
setIdpValid(true);
setValidationErrors({});
@@ -921,7 +921,7 @@ const AddTenant = ({
};
}
if (idpSelection !== "none") {
if (idpSelection !== "Built-in") {
let dataIDP: any = {};
switch (idpSelection) {
@@ -1249,7 +1249,7 @@ const AddTenant = ({
setIdpSelection(e.target.value);
}}
selectorOptions={[
{ label: "None", value: "none" },
{ label: "Built-in", value: "Built-in" },
{ label: "OpenID", value: "OpenID" },
{ label: "Active Directory", value: "AD" },
]}