Skip to content
Snippets Groups Projects
Commit 97ef22c2 authored by Zoltan Runyo's avatar Zoltan Runyo
Browse files

ICSHWI-8790: Disable the Deploy button on the 'Deploy dialog' when 'host' or...

ICSHWI-8790: Disable the Deploy button on the 'Deploy dialog' when 'host' or 'Git reference' fields are empty
parent 32148ec6
No related branches found
No related tags found
3 merge requests!145ICSHWI-8790: Disable the Deploy button on the 'Deploy dialog' when 'host' or...,!140ICSHWI-8790: UI changes,!137ICSHWI-8790 UI changes
...@@ -99,7 +99,7 @@ export function IOCDeployDialog({ open, setOpen, submitCallback, hasActiveDeploy ...@@ -99,7 +99,7 @@ export function IOCDeployDialog({ open, setOpen, submitCallback, hasActiveDeploy
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button onClick={handleClose} color="primary">Cancel</Button> <Button onClick={handleClose} color="primary">Cancel</Button>
<Button color="primary" variant="contained" type="submit" disabled={hasActiveDeployment && init?.version === gitVersion}>Deploy</Button> <Button color="primary" variant="contained" type="submit" disabled={!host || !gitVersion || (hasActiveDeployment && init?.version === gitVersion)}>Deploy</Button>
</DialogActions> </DialogActions>
</form> </form>
</Dialog> </Dialog>
......
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