mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Team Settings: Edit team modal can hit enter to save team name (#2555)
This commit is contained in:
parent
a768a4402d
commit
ce8a8e371a
3 changed files with 4 additions and 8 deletions
1
changes/issue-1620-team-modal-hit-enter
Normal file
1
changes/issue-1620-team-modal-hit-enter
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Can hit enter to add team or edit team
|
||||
|
|
@ -65,7 +65,7 @@ describe(
|
|||
// delete custom label
|
||||
cy.get(".manage-hosts__label-block button").last().click();
|
||||
|
||||
cy.wait(2000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
cy.wait(3000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
cy.get(".manage-hosts__modal-buttons > .button--alert")
|
||||
.contains("button", /delete/i)
|
||||
.click();
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const EditTeamModal = (props: IEditTeamModalProps): JSX.Element => {
|
|||
|
||||
return (
|
||||
<Modal title={"Edit team"} onExit={onCancel} className={baseClass}>
|
||||
<form className={`${baseClass}__form`}>
|
||||
<form className={`${baseClass}__form`} onSubmit={onFormSubmit}>
|
||||
<InputFieldWithIcon
|
||||
autofocus
|
||||
// error={errors.name}
|
||||
|
|
@ -47,12 +47,7 @@ const EditTeamModal = (props: IEditTeamModalProps): JSX.Element => {
|
|||
value={name}
|
||||
/>
|
||||
<div className={`${baseClass}__btn-wrap`}>
|
||||
<Button
|
||||
className={`${baseClass}__btn`}
|
||||
type="button"
|
||||
variant="brand"
|
||||
onClick={onFormSubmit}
|
||||
>
|
||||
<Button className={`${baseClass}__btn`} type="submit" variant="brand">
|
||||
Save
|
||||
</Button>
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Reference in a new issue