Skip to content
Snippets Groups Projects
Commit b764e05b authored by Larbi Gharib's avatar Larbi Gharib
Browse files

Fix disabled Create

Change-Id: I0399eff814fa5fc4bc52eddca01c7f0d9591598c
parent b2812dd3
No related branches found
No related tags found
No related merge requests found
......@@ -90,7 +90,7 @@ export default function Blueprints() {
const [blueprintNameExits, setBlueprintNameExits] = React.useState()
const [open, setOpen] = React.useState(false)
const [disableCreate, setDisableCreate] = React.useState(false);
const [disableCreate, setDisableCreate] = React.useState(true);
const [removedBlueprint, setRemovedBlueprint] = React.useState()
const [openRemoveDialog, setOpenRemoveDialog] = React.useState()
......@@ -156,6 +156,7 @@ export default function Blueprints() {
axios(configApiCall(api_path_blueprints+"?name="+blueprintName+"&policyData=", 'POST', null, null)).then((response)=>{
setOpen(false);
setDisableCreate(true);
console.log("Successfully created" + blueprintName)
}).catch((error) =>{
setOpen(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment